D
Dave
Hi,
I'm confused by the role that the viewState plays in maintaining the values
in a datagrid.
I have a datagrid that is loaded with the appropriate data. A new page is
choosen, firing the PageIndexChanged event. Does the viewState maintain the
values in the datagrid? (To me, it appears that the viewState does NOT
maintain the values in the dataGrid.)
If the viewState doesn't maintain the datagrid's values, what does it do? To
get the new page to be displayed, I have to re-populate the datagrid.
Yet, it looks like when I have the datagrid sorted on a specific column, and
the user chooses a new page, the sort criteria is maintained. Do I have
that correct?
So what does enabling the viewState on the datagrid accomplish?
TIA,
Dave
I'm confused by the role that the viewState plays in maintaining the values
in a datagrid.
I have a datagrid that is loaded with the appropriate data. A new page is
choosen, firing the PageIndexChanged event. Does the viewState maintain the
values in the datagrid? (To me, it appears that the viewState does NOT
maintain the values in the dataGrid.)
If the viewState doesn't maintain the datagrid's values, what does it do? To
get the new page to be displayed, I have to re-populate the datagrid.
Yet, it looks like when I have the datagrid sorted on a specific column, and
the user chooses a new page, the sort criteria is maintained. Do I have
that correct?
So what does enabling the viewState on the datagrid accomplish?
TIA,
Dave