Hi bob,
Thanks for answering, I truly appreciate it...I take it you mean storing them in the viewstate or the session state separately?
What I do not understand is that the Gridview.pageindex persists within the control without any need for outside storage elsewhere when doing postbacks.
Why is this not happening for the SortExpression and SortDirection of the grid view. I did EnableViewState for the gridview. So shouldn't that persist through that control without the need to store it in an outside location.
I have gotten around the problem by storing it in the ViewState area. But I really like to understand WHY and if I did something wrong? the gridView.pageindex value persists within the gridview control on postbacks automatically so why doesn't sortdirection and sortexpression is not persisting in the gridview control.
Anyone have any explanations?
Main Topics
Browse All Topics





by: TheLearnedOnePosted on 2007-10-17 at 11:54:58ID: 20095983
It doesn't look like you are persisting those values after post-back.
Bob