code_junkie

ScrollBar in DataGridView

Nov 13th, 2011
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. public class SubclassedDataGridView : DataGridView
  2. {
  3. public SubclassedDataGridView (): base()
  4. {
  5. VerticalScrollBar.VisibleChanged += new EventHandler(VerticalScrollBar_VisibleChanged);
  6. }
  7.  
  8. void VerticalScrollBar_VisibleChanged(object sender, EventArgs e)
  9. {
  10. VerticalScrollBar.Visible = true;
  11. }
  12. }
Add Comment
Please, Sign In to add comment