This property returns and sets a value that determines whether a Grid control has horizontal and/or vertical scroll bars.
object.ScrollBars [= value]
Constant |
Setting |
Description |
| flexScrollBarNone | 0 | None |
| flexScrollBarHorizontal | 1 | Horizontal |
| flexScrollBarVertical | 2 | Vertical |
| flexScrollBarBoth | 3 | Both |
Scroll bars appear on a Grid control only if the Grid control’s contents extend beyond the Grid control's borders. For example, a vertical scroll bar appears when a Grid control cannot display all its rows. If ScrollBars is set to False, a Grid control will not have scroll bars, regardless of its contents.
Note that if a Grid control has no scroll bars in either direction, it will not enable any scrolling in that direction, even if a user uses the keyboard to select a cell that is not in the visible area of the control.