VSFlexGrid Control > VSFlexGrid Properties, Events, and Methods > VSFlexGrid Properties > ScrollBars Property |
Returns or sets whether the control will display horizontal or vertical scroll bars.
[form!]VSFlexGrid.ScrollBars[ = ScrollBarsSettings ]
The settings for the ScrollBars property are described below:
Constant |
Value |
Description |
FlexScrollBarNone |
0 |
Do not display any scrollbars. |
FlexScrollBarHorizontal |
1 |
Display a horizontal scrollbar. |
FlexScrollBarVertical |
2 |
Display a vertical scrollbar. |
FlexScrollBarBoth |
3 |
Display horizontal and vertical scrollbars. |
Scroll bars are displayed only if the contents of the control extend beyond its borders. For example, if ScrollBars is set to flexScrollBarHorizontal, a horizontal scroll bar is displayed only if the control is not wide enough to display all columns at once.
If the control has no scroll bars in a direction, it will not allow any scrolling in that direction, even if the user uses the keyboard to select a cell that is outside the visible area of the control. However, you may still scroll the control through code by setting the TopRow and LeftCol properties.
ScrollBarsSettings (Enumeration)
flexScrollBarBoth (3)