Board index » delphi » Horizontal/vertical scrolling in TDBGRID

Horizontal/vertical scrolling in TDBGRID

Hello,

i need to scroll a DBGRIDs contents in horizontal and vertical direction via
buttons (touch screen) instead of using the scrollbar. Is there a
possibility to do that and, if yes, how ?

Thanks in advance,

Hartmut

 

Re:Horizontal/vertical scrolling in TDBGRID


Look at the ScrollBy method for the grid.

Vertically, you'd probably have better results scrolling the dataset.
DBGrid1.datasource.dataset.next

Quote
"H. Hoffmann" <hhoffm...@aol.com> wrote in message

news:3ddd4f21$1@newsgroups.borland.com...
Quote
> Hello,

> i need to scroll a DBGRIDs contents in horizontal and vertical direction
via
> buttons (touch screen) instead of using the scrollbar. Is there a
> possibility to do that and, if yes, how ?

> Thanks in advance,

> Hartmut

Other Threads