Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomGridOptionsView.ScrollBars Property

Indicates whether the grid View contains scrollbars.

#Declaration

Delphi
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