Web app Datagrid - select button w/ paging not working
Posted on 2004-11-04
I have a datagrid set up with a Select Button Column. This is a button that chooses the row and lets the code use that row's info in textbox/dropdownlist controls for the user to make changes. The datagrid also has paging - 5 items per page. When I run the program, everything seems fine. Click the button on the first row, my label (triggered by the change) says 0, the 4th item makes the label say 3, etc. The problem is when I click to the next page in the datagrid and click the first button, it still references 0. The second button still references 1, etc etc. What code do I need (I guess in the selectedpagechage or whatever) to remedy this?