Back to Devexpress

ASPxGridViewSettings.ShowVerticalScrollBar Property

aspnet-devexpress-dot-web-dot-aspxgridviewsettings-f4049a90.md

latest3.1 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(false)]
[Obsolete("Use the Settings.VerticalScrollBarMode property instead.")]
public bool ShowVerticalScrollBar { get; set; }
vb
<Obsolete("Use the Settings.VerticalScrollBarMode property instead.")>
<DefaultValue(False)>
Public Property ShowVerticalScrollBar As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true, to display the vertical scrollbar; otherwise, false

|

Property Paths

You can access this nested property as listed below:

Object TypePath to ShowVerticalScrollBar
ASPxGridView

.Settings .ShowVerticalScrollBar

| | GridViewProperties |

.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

VerticalScrollableHeight

Grid View

ASPxGridViewSettings Class

ASPxGridViewSettings Members

DevExpress.Web Namespace