Back to Devexpress

ASPxGridSettings.VerticalScrollBarMode Property

aspnet-devexpress-dot-web-dot-aspxgridsettings-ce92bbba.md

latest2.8 KB
Original Source

ASPxGridSettings.VerticalScrollBarMode Property

Gets or sets a value specifying the vertical scrollbar’s display mode.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(ScrollBarMode.Hidden)]
public ScrollBarMode VerticalScrollBarMode { get; set; }
vb
<DefaultValue(ScrollBarMode.Hidden)>
Public Property VerticalScrollBarMode As ScrollBarMode

Property Value

TypeDefaultDescription
ScrollBarModeHidden

One of the ScrollBarMode enumeration values.

|

Available values:

NameDescription
Hidden

The scrollbar is hidden.

| | Visible |

The scrollbar is visible.

| | Auto |

The scrollbar is automatically shown when the size of the control content exceeds the size of the control itself.

|

Remarks

By default, the grid height is dependent on the number of data items (row, card or record) displayed on a page. To reduce the grid’s height, you can display its vertical scrollbar and specify the height of the scrollable area, in pixels. The scrollbar’s visibility is specified by the VerticalScrollBarMode property. The scrollable area’s height is specified by the ASPxGridSettings.VerticalScrollableHeight property.

The horizontal scrollbar display mode can be specified via the ASPxGridSettings.HorizontalScrollBarMode

Note

See Also

HorizontalScrollBarMode

VerticalScrollableHeight

ASPxGridSettings Class

ASPxGridSettings Members

DevExpress.Web Namespace