HI All,
I have a tabcontrol and three datagridviews on each tabpage. i.e tabpage1 have datagridview1, tabpage2 have datagridview2 and tabpage3 have datagridview3. Now when i scroll horizontally on datagridview1 to some postion remaining all datagridview has to scroll to that postion and vice versa..

You will have to get the HorizontalScrollBar property of each DataGridView and add a handler to the OnScroll event. When the event is raised, set the other scroll bars to the same Value as the one that was scrolled. Make sure you set a sentinal value in the handler to let it know that it doing the scrolling, or you will get an infinite loop as each one tells the others to scroll, etc.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.