Tab

ASPxGridViewPagerSettings Class

Contains pager settings.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

Declaration

public class ASPxGridViewPagerSettings :
    ASPxGridPagerSettings

The following members accept/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