Using one scroll bar to control two DataGridView

前端 未结 3 1868
天命终不由人
天命终不由人 2021-01-26 02:39

I am trying to control two DataGridView\'s with only one of the DataGridView vertical scroll bars being visible.

3条回答
  •  太阳男子
    2021-01-26 03:31

    protected void grid1_Scroll(object sender, ScrollEventArgs e)
    {
        grid2.VerticallScrollBar.Value = e.NewValue;
    }
    

提交回复
热议问题