Back to Devexpress

ASPxGridSettings.VerticalScrollableHeight Property

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

latest2.9 KB
Original Source

ASPxGridSettings.VerticalScrollableHeight Property

Gets or sets the scrollable area’s height.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue(200)]
public int VerticalScrollableHeight { get; set; }
vb
<DefaultValue(200)>
Public Property VerticalScrollableHeight As Integer

Property Value

TypeDefaultDescription
Int32200

Specifies the scrollable area’s height, in pixels.

|

Remarks

The VerticalScrollableHeight property allows you to specify the scrollable area’s height. Use the ASPxGridSettings.VerticalScrollBarMode property to set the scrollbar’s display mode.

Concept

Examples

Web Forms:

aspx
<dx:ASPxGridView ID="Grid" runat="server" AutoGenerateColumns="False" Width="100%" DataSourceID="OrdersDataSource" KeyFieldName="OrderID">
    <Columns>
    ...
    </Columns>
    <Settings VerticalScrollableHeight="150" VerticalScrollBarMode="Visible" />
    ...
</dx:ASPxGridView>

MVC:

csharp
@Html.DevExpress().GridView(settings => {
    settings.Name = "gridView";
    ...
    settings.Settings.VerticalScrollBarMode = ScrollBarMode.Visible;
    settings.Settings.VerticalScrollableHeight = 150;
    ...
}).Bind(Model).GetHtml()

Online Demos

Online Example

GridView - How to use the dxScrollView widget instead of default browser scrollbars

See Also

VerticalScrollBarMode

ASPxGridSettings Class

ASPxGridSettings Members

DevExpress.Web Namespace