Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DBGrid and scrollbar

Status
Not open for further replies.

Regany

Programmer
Aug 27, 2004
72
LV
How to remove scrollbar from DBgrid?
 
Why do you need to? IIRC, if the dataset is small enough to appear in the grid, the scroll bar automatically goes away. If there are too many records for the user to see vertically, the vertical scroll bar should be there. If there are too many fields for the user to see horizontally, the scroll bar should be there.

Explain some more about what you're trying to do so we can see if there's another way of doing it.

-Dell
 
Regany,

On your formshow add the following:

ShowScrollBar(DBGrid1.Handle, SB_VERT, False);


rgds,
Ryan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top