Hi. I have a problem with my GridView (asp.net 2.0)...Here is what I'm doing. My GridView is bound (HTML tags) to a
DataSet. This GridView displays about 8,000 records (paging is enabled). I have added a TextBox which works as a filter on the GridView. User enters search value in this text box, clicks a button and GridView displays the record user is searching for. Here is what the problem is: When user clicks the search button my GridView is programmatically re-bound to a different DataSource, so that I displays a single record, which works fine. However, I want to be able to go to the previous display of 8,000 records (paged). So again, I re-bind my GridView to the original DataSource. Of course binding, is done programmatically. But now my paging does not work. It worked in the beginning before I've done programmatic re-binding, but not now. Can anybody suggest how I need to go about fixing this problem? Is there any material on the web concerning this issue?
Thanks a lot!
Valeriya
DataSet. This GridView displays about 8,000 records (paging is enabled). I have added a TextBox which works as a filter on the GridView. User enters search value in this text box, clicks a button and GridView displays the record user is searching for. Here is what the problem is: When user clicks the search button my GridView is programmatically re-bound to a different DataSource, so that I displays a single record, which works fine. However, I want to be able to go to the previous display of 8,000 records (paged). So again, I re-bind my GridView to the original DataSource. Of course binding, is done programmatically. But now my paging does not work. It worked in the beginning before I've done programmatic re-binding, but not now. Can anybody suggest how I need to go about fixing this problem? Is there any material on the web concerning this issue?
Thanks a lot!
Valeriya