Asp.net GridView index not accurate when returning to the page (back button) after DB row deleted

18 Views Asked by At

I have a Gridview in asp.net that shows filtered information from a DB. The grid has a link button that directs to an Information page.

When the user changes the data at the information page (which makes that data no longer fit the original filter from the main page) and then hits the "back" button - it returns to the main gridview, and still shows the original data (including that changed row that is no longer relevant to the filter). That is fine by me. The thing is the if I click that changed row, it now direct the page to the row underneath it, and the same goes to all the other rows under the changed row - they all direct to the row above them, as if the deleted row is not there. Is this something known with gridviews or am I doing something wrong here?

0

There are 0 best solutions below