Click to See Complete Forum and Search --> : Scrolling two flex grids together


bigfredb
March 21st, 2001, 12:04 PM
I have two flexgrids (side by side) on my form with the same number of rows.

When I scroll one of the flexgrids, I would like to have the other one scroll at the same rate.

Does anyone have any examples or ideas of how to accomplish this??

Thanks

Mihai Anghel
March 25th, 2001, 12:54 PM
Hi,

Try the following:

Private Sub MSFlexGrid1_Scroll()
MSFlexGrid2.TopRow = MSFlexGrid1.TopRow
End Sub

Private Sub MSFlexGrid2_Scroll()
MSFlexGrid1.TopRow = MSFlexGrid2.TopRow
End Sub