Datagridview - Datagrid question (scrollbars)
C#
1
Posts
1
Posters
0
Views
1
Watching
-
hi, i have following problem, i have a datagrid that is bigger than my screen, so i have scrollbars (vertical and horizontal). Now each X seconds, the datagrid is updated with data from the database. So the datagridview is refreshed. When a user is working on row X, and column Y, and the datagrid is refreshed all the scrollbars get back at position 0. So the horizontal scrollbar is put back to the left side of the screen, and the vertical scrollbar is put back on the top of the screen. I know how i can get the current cell of the user, and put the cursor back on that row. But how can i make sure that the horizontal scrollbar is put back on a position so the current selected column is viewable? thx grtz