tirbanqs
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.
I have 2 DBGrids(TwwDBGrid) and wanted to synchronize both grids if scrolled horizontally.
Any ideas?
Thanks in advance.
SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
do you have properties for the scrollbars ?
ASKER
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
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
ASKER
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.
I kind of understand your point but i don't know how to implement.
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
By the way Geert_Gruwez, I will award you the points.
Thanks.
Thanks.
ASKER
I don't think so because the TwwDBGrid has no event for scrolling.