Tab
A newer version of this page is available. Switch to the current version.

ASPxGridViewPagerSettings Class

Contains pager settings.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public class ASPxGridViewPagerSettings :
    ASPxGridPagerSettings
Public Class ASPxGridViewPagerSettings
    Inherits ASPxGridPagerSettings

Related API Members

The following members accept/return ASPxGridViewPagerSettings objects:

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

WebForms 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