Skip to main content
A newer version of this page is available. .

VGridControlBase.ScrollVisibility Property

Gets or sets a value that specifies the availability of scroll elements.

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v19.1.dll

Declaration

[DefaultValue(ScrollVisibility.Auto)]
[XtraSerializableProperty]
public ScrollVisibility ScrollVisibility { get; set; }

Property Value

Type Default Description
ScrollVisibility **Auto**

A ScrollVisibility enumeration value that specifies when horizontal and vertical scroll bars should be displayed.

Available values:

Name Description
Never

The scrolling element is invisible regardless of whether data scrolling can be performed.

Auto

The scrolling element is visible only when data scrolling can be performed.

Both

Horizontal and vertical scrolling elements are always visible.

Horizontal

The scrolling element is only visible when horizontal scrolling can be performed. The vertical scroll bar is invisible in this case.

Vertical

The scrolling element is only visible when vertical scrolling can be performed. The horizontal scroll bar is invisible in this case.

Remarks

If the ScrollVisibility property is set to ScrollVisibility.Never, the horizontal and vertical scroll bars are hidden. This disables navigation within the vertical grid control via the mouse but the keyboard can still be used to move through the rows (records). Please refer to the Focus and Scroll Rows and Focus and Scroll Records topics for detailed information on how to navigate through records and rows in code.

See Also