How to detect the vertical scrollbar in a DataGridView control

后端 未结 7 748
半阙折子戏
半阙折子戏 2021-01-05 05:19

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

7条回答
  •  旧巷少年郎
    2021-01-05 05:57

    Set the DGV last column's "AutoSizeMode" property to "Fill" and set the TextBox's Width property equal to dgv.Columns["lastcolumn"].Width.

提交回复
热议问题