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

ASPxGridViewSettings.ShowVerticalScrollBar Property

OBSOLETE

Use the Settings.VerticalScrollBarMode property instead.

Gets or sets whether the vertical scrollbar is displayed.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

[Obsolete("Use the Settings.VerticalScrollBarMode property instead.")]
[DefaultValue(false)]
public bool ShowVerticalScrollBar { get; set; }

Property Value

Type Default Description
Boolean **false**

true, to display the vertical scrollbar; otherwise, false

Property Paths

You can access this nested property as listed below:

Object Type Path to ShowVerticalScrollBar
ASPxGridView
.Settings.ShowVerticalScrollBar
GridViewProperties
.Settings.ShowVerticalScrollBar
MVCxGridView
.Settings.ShowVerticalScrollBar

Remarks

By default, the ASPxGridView’s height is dependent on the number of rows displayed within a page. The maximum number of rows that can be displayed on a page is specified by the ASPxGridViewPagerSettings.PageSize property.

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 ShowVerticalScrollBar property. The scrollable area’s height is specified by the ASPxGridSettings.VerticalScrollableHeight property.

Note

When scrolling is enabled, width dimension properties (such as the grid’s ASPxWebControl.Width, its columns’ WebColumnBase.Width, etc.) should be specified. To learn more, see the ASPxGridView Fixed Table Layout Specifics (Scrolling and Column Resizing) topic.

See Also