G
Guest
Hi,
When binding a dataset to a DataGrid and paging 10 records at a time, is the
entire dataset still encoded and sent to viewstate as well OR just the
current page and what's visible to the user stored in the viewstate on the
browser?
I've added some excerpts from some articles so I'm not sure. Any other MS
links verifying this would be great.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspnet/html/asp11222001.asp
"The DataGrid control is a particularly heavy user of ViewState. By default,
all of the data displayed in the grid is also stored in ViewState"
http://www.extremeexperts.com/Net/Articles/ViewState.aspx
"If you have Set EnableViewState to true for a DataGrid which is having
thousands of records. Then you will end up having viewstate size more than 10
KBytes."
The last article didn't say if the datagrid was using paging or not...
When binding a dataset to a DataGrid and paging 10 records at a time, is the
entire dataset still encoded and sent to viewstate as well OR just the
current page and what's visible to the user stored in the viewstate on the
browser?
I've added some excerpts from some articles so I'm not sure. Any other MS
links verifying this would be great.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspnet/html/asp11222001.asp
"The DataGrid control is a particularly heavy user of ViewState. By default,
all of the data displayed in the grid is also stored in ViewState"
http://www.extremeexperts.com/Net/Articles/ViewState.aspx
"If you have Set EnableViewState to true for a DataGrid which is having
thousands of records. Then you will end up having viewstate size more than 10
KBytes."
The last article didn't say if the datagrid was using paging or not...