ComponentOne VSFlexGrid 8.0
ScrollBars Property

Returns or sets whether the control will display horizontal or vertical scroll bars.

Syntax

[form!]VSFlexGrid.ScrollBars[ = ScrollBarsSettings ]

Remarks

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.

Data Type

ScrollBarsSettings (Enumeration)

Default Value

flexScrollBarBoth (3)

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback