I am trying to control two DataGridViews, only visible vertical scrollbars of a DataGridView.
protected void grid1_Scroll(object sender, ScrollEventArgs e) { grid2.VerticallScrollBar.Value = e.NewValue; }
In Form.Load ():
Grid1.Scroll += (s, ev) => Grid2.VerticalScrollBar.Value = Grid1.VerticalScrollBar.Value;
Edit: We cannot assign Grid2.VerticalScrollingOffset, as I originally proposed, since this is a ReadOnly property.