GridView.HorzScrollVisibility Property

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

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

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

Property Value

Type Default Description
ScrollVisibility

Auto

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

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