Skip to main content

TcxCustomGridOptionsView.ScrollBars Property

Indicates whether the grid View contains scrollbars.

Declaration

property ScrollBars: TcxScrollStyle read; write; default ssBoth;

Property Value

Type Default
TcxScrollStyle ssBoth

Remarks

The ScrollBars property allows you to specify the scrollbars to display within the grid View. Scrollbars appear when the View window is smaller than the entire View contents. By default, a grid View is capable of displaying horizontal and vertical scrollbars.

TScrollStyle value Description
ssNone Prevents a grid View from displaying vertical and horizontal scrollbars.
ssHorizontal Enables only the horizontal scrollbar to be displayed. Vertical scrollbars are hidden.
ssVertical Enables only the vertical scrollbar to be displayed. Horizontal scrollbars are hidden.
ssBoth Enables horizontal and vertical scrollbars.

Regardless of the scrollbar visibility, you can still scroll the View contents programmatically. See the View’s Controller.MakeItemVisible, Controller.MakeRecordVisible methods, for instance.

The default value of the ScrollBars property is ssBoth.

See Also