I would like to get the scrollbar position of DataGridView
, so after giving a refresh , continue in the same position.
I would like to get the scrollbar position of DataGridView
, so after giving a refresh , continue in the same position.
So, man, for you to get the position of the scroll
int currentPositionScroll = datagridView.FirstDisplayedScrollingRowIndex;
and here is for you to set the value you want for scroll
datagridView.FirstDisplayScrollingRowIndex = currentPositionScroll
I hope it helps.