Link to home
Create AccountLog in
Avatar of tirbanqs
tirbanqsFlag for Philippines

asked on

Synchronize 2 DBGrid horizontally

Hi guys,

I have 2 DBGrids(TwwDBGrid) and wanted to synchronize both grids if scrolled horizontally.

Any ideas?
Thanks in advance.
SOLUTION
Avatar of Geert G
Geert G
Flag of Belgium image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of tirbanqs

ASKER

Thanks for the reply Geert Gruwez.
I don't think so because the TwwDBGrid has no event for scrolling.
do you have properties for the scrollbars ?
There are no properties for scrollbars. Only the showing of vertical and horizontal scrollbars.
if you can get the handles of the scrollbars you can catch the events for that scroll bar.
They may be child controls of that grid ...
then PostMessage the event to the other scrollbar
I don't have those components here, so can't test, but that's the way to go

Can you give an example with a different grid? Like the standard grid from Delphi.
I kind of understand your point but i don't know how to implement.
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
By the way Geert_Gruwez, I will award you the points.

Thanks.