Skip to main content
Tab

ASPxGridViewPagerSettings Class

Contains pager settings.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

public class ASPxGridViewPagerSettings :
    ASPxGridPagerSettings

The following members return ASPxGridViewPagerSettings objects:

Library Related API Members
ASP.NET Web Forms Controls ASPxGridView.SettingsPager
GridViewProperties.SettingsPager
ASP.NET MVC Extensions GridViewSettings.SettingsPager
MVCxGridViewProperties.SettingsPager

Remarks

The ASPxGridViewPagerSettings class contains the settings that allow you to customize pager buttons, specify the maximum number of rows that can be displayed on a page, etc. These settings can be accessed via the ASPxGridView’s ASPxGridView.SettingsPager property.

Online Demos

Example

Web Forms approach:

<dx:ASPxGridView ID="GridView" runat="server" DataSourceID="OrdersDataSource" Width="100%" KeyFieldName="OrderID">
    <Columns>
    ...
    </Columns>
    <Settings ShowGroupPanel="true" VerticalScrollBarMode="Visible" VerticalScrollableHeight="400" />
    <SettingsPager Mode="EndlessPaging" PageSize="20" />
</dx:ASPxGridView>

MVC approach:

@Html.DevExpress().GridView(settings => {
    settings.Name = "gridView";
    ...
    settings.Settings.VerticalScrollBarMode = ScrollBarMode.Visible;
    settings.Settings.VerticalScrollableHeight = 400;

    settings.SettingsPager.Mode = GridViewPagerMode.EndlessPaging;
    settings.SettingsPager.PageSize = 20;
    ...
}).Bind(Model).GetHtml()
See Also