How to detect the vertical scrollbar in a DataGridView control
- by Billy
Using winforms in vs2008. I have a DataGridView and I would like to detect when the vertical scroll bar is visible. What event should I register for?
I am adding the summing the each cell value in the last column of the grid and displaying that value in a textbox at the bottom of the DataGridView.
I would like this textbox to stay lined up with the cell values (I have made them right aligned since it is $$ values) even after the scroll bar is present.