Back to Devexpress

LayoutViewOptionsBehavior.ScrollVisibility Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-layout-dot-layoutviewoptionsbehavior-d6cb547c.md

latest2.7 KB
Original Source

LayoutViewOptionsBehavior.ScrollVisibility Property

Gets or sets a value specifying when the scrollbar should be displayed.

Namespace : DevExpress.XtraGrid.Views.Layout

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(ScrollVisibility.Always)]
[XtraSerializableProperty]
public virtual ScrollVisibility ScrollVisibility { get; set; }
vb
<DefaultValue(ScrollVisibility.Always)>
<XtraSerializableProperty>
Public Overridable Property ScrollVisibility As ScrollVisibility

Property Value

TypeDefaultDescription
ScrollVisibilityAlways

A ScrollVisibility enumeration value specifying when the scrollbar should be displayed.

|

Available values:

NameDescription
Never

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

| | Always |

The scrolling element is always visible.

| | Auto |

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

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ScrollVisibility
LayoutView

.OptionsBehavior .ScrollVisibility

|

Remarks

If this property value is ScrollVisibility.Never, the scrollbar is hidden, and end-users can navigate the View only using the keyboard.

See Also

VisibleRecordIndex

VisibleRecordIndexChanged

LayoutViewOptionsBehavior Class

LayoutViewOptionsBehavior Members

DevExpress.XtraGrid.Views.Layout Namespace