Datagrid, posted data, and viewstate size
I have a datagrid on a page .. which can be very large .. a couple of
hundred rows and 20 columns. Some of the columns are custom templates
allowing the user to enter in text or select a checkbox .. since there are
several postbacks while interacting with the page .. reducing the viewstate
size is important. I've thought about setting the viewstate to false on the
grid and rebinding on a postback but how would I go about capturing the data
posted back to accurately update a copy of the dataset on the server which
is bound to the grid.
Randall
.
Relevant Pages
- Avoiding databind to be called twice between postbacks
... I have a datagrid to which the columns are added dynamically. ... "AddColumns" - This dynamically adds the columns to the grid fby ... viewstate is restored and I get the new values entered in the grid. ... information back to the database I have to again call the BindGrid() method ... (microsoft.public.dotnet.framework.aspnet.datagridcontrol) - Datagrid and Viewstate Size
... I have a datagrid on a page .. ... several postbacks while interacting with the page .. ... I've thought about setting the viewstate to false on the ... is bound to the grid. ... (microsoft.public.dotnet.framework.aspnet.datagridcontrol) - Re: ViewState bei Datagrid
... Für das Grid ist der Viewstate aktiviert, was sich in ca. 80 KB> niederschlägt. ... Im Grid habe ich pro Zeile einen Delete-Button eingebaut, ausserdem gibt es in jeder Zeile eine> Dropdownbox. ... > Wenn ich nun den Viewstate für das DataGrid deaktiviere, wird das> DeleteCommand nicht mehr ausgelöst und grd.Items ist leer. ... Wie kann ich> trotz deaktiviertem ViewState den Delete ausführen und wie bekomme ich> Zugriff auf die Dropdownboxen? ... (microsoft.public.de.german.entwickler.dotnet.asp) - Re: Bug with a DataGrid bound on every request
... The idea of disabling viewstate on the individual rows is a good one. ... to have a datagrid built with this type of use in mind. ... >> This means that rebinding the data to the grid on every request is ... For example, the SelectedIndex ... (microsoft.public.dotnet.framework.aspnet.buildingcontrols) - Re: Datagrid and Viewstate Size
... the trick is to rebuild the grid and all of it's child controls before the Page loads the viewstate and postdata. ... since there are several postbacks while interacting with the page .. ... I've thought about setting the viewstate to false on the grid and rebinding on a postback but how would I go about capturing the data posted back to accurately update a copy of the dataset on the server which is bound to the grid. ... (microsoft.public.dotnet.framework.aspnet.datagridcontrol) |
|