I have a master grid which can have 100's of rows. Only the top 20 rows are visible.
When I click on a row in the master grid, a second grid is populated with other editable data.
If I then click a different row on the master grid, test to see if we have a dirty record in the second grid.
If we do, then I pop up a confirm dialogue box.
On selecting discard, the changes in the second grid are removed, and on the master grid, I wish to make sure that the original row is visible.
So, I am using the CurrentRowChanging event on the master grid to pick up the change, setting the e = true, discarding the updated data in the second grid and finally setting the master grid CurrentRow to be the same as .CurrentRow.
All of this works fine.
My issue is that I want the CurrentRow to become visible within the master grid. Currently, if I have 50 records in the master grid, edit row 5, then discard after clicking row 45. I want row 5 to be visible in the master grid.