>On a form, I have 2
DATAGRID controls. Both looks the same (same number of columns, same columns width). Controls are larger than the screen width.
>
>I want both grids to keep scrolling in sync when user horizontally scrolls one of the 2 grid.
>
>Do you know how can I do this?
>
>I use VB6 SP3.
What a night can do?!?!?!
For those who are interested, I found it. The datagrid control have a property called LeftCol that returns the column index of the first visible column. This property is read/write so can be use like this (in the Scroll event):
grd1.LeftCol = grd2.LeftCol
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com