Board index » delphi » Hiding TDBGrid scrollbar

Hiding TDBGrid scrollbar

Quote
Pat White <p...@pwhite.demon.co.uk> wrote in message

news:V6$TLCAvDR33Ewsv@pwhite.demon.co.uk...

Quote
> Is it possible to hide the vertical scrollbar of a TDBGrid?

You could try this in the FormCreate handler...
  ShowScrollBar(DBGrid1.handle, SB_VERT, False);

--
Stephen Brown

 

Re:Hiding TDBGrid scrollbar


Or simply in OnFormCreate:

DBGrid1.ScrollBars := ssNone

--
With best regards, Mike Shkolnik.
FIDO: 2:463/106.14
E-Mail: mshkol...@rs-ukraine.kiev.ua
        m...@woccu.freenet.kiev.ua
WEB: http://www.geocities.com/SiliconValley/Grid/3989

Stephen Brown D??? ???Y?? <7s0ts7$c6...@gxsn.com> ...

Quote
>Pat White <p...@pwhite.demon.co.uk> wrote in message
>news:V6$TLCAvDR33Ewsv@pwhite.demon.co.uk...
>> Is it possible to hide the vertical scrollbar of a TDBGrid?

>You could try this in the FormCreate handler...
>  ShowScrollBar(DBGrid1.handle, SB_VERT, False);

>--
>Stephen Brown

Other Threads