Does anybody know how can I...

... turn off the vertical scroll bar
in DBGrid component?
grebovAsked:
Who is Participating?
 
intheConnect With a Mentor Commented:
Hi
there is an API function you can use to show or hide the window scrollbars
 of about any window or control:

ShowScrollbar( dbgrid1.handle, SB_VERT, False );

or

ShowScrollbar( dbgrid1.handle, SB_HORZ, False );

or

ShowScrollbar( dbgrid1.handle, SB_BOTH, False );

Regards Barry

ps.
 can do it on formactivate event etc..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.