Back to Devexpress

GridView.HorzScrollVisibility Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridview-8e5c025d.md

latest3.0 KB
Original Source

GridView.HorzScrollVisibility Property

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

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DefaultValue(ScrollVisibility.Auto)]
[DXCategory("Behavior")]
[XtraSerializableProperty]
public ScrollVisibility HorzScrollVisibility { get; set; }
vb
<DefaultValue(ScrollVisibility.Auto)>
<XtraSerializableProperty>
<DXCategory("Behavior")>
Public Property HorzScrollVisibility As ScrollVisibility

Property Value

TypeDefaultDescription
ScrollVisibilityAuto

A ScrollVisibility enumeration value specifying when the horizontal 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.

|

Remarks

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

If the GridOptionsView.ColumnAutoWidth option is enabled, all columns are simultaneously visible within the view rectangle. In this case, horizontal scrolling is not required. To enable horizontal scrolling, set the GridOptionsView.ColumnAutoWidth option to false.

See Also

MakeColumnVisible(GridColumn)

VertScrollVisibility

ColumnAutoWidth

InvertHorizontalScrolling

GridView Class

GridView Members

DevExpress.XtraGrid.Views.Grid Namespace