Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keep 2 Datagrid in sync
Message
General information
Forum:
Visual Basic
Category:
ActiveX controls
Miscellaneous
Thread ID:
00353051
Message ID:
00353255
Views:
22
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform