How to detect the vertical scrollbar in a DataGridView control
        Posted  
        
            by Billy
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Billy
        
        
        
        Published on 2010-04-21T18:43:11Z
        Indexed on 
            2010/04/21
            19:13 UTC
        
        
        Read the original article
        Hit count: 430
        
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.
© Stack Overflow or respective owner