Back to Devexpress

ASPxGridViewPagerSettings Class

aspnet-devexpress-dot-web-38d8eeca.md

latest4.0 KB
Original Source

ASPxGridViewPagerSettings Class

Contains pager settings.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class ASPxGridViewPagerSettings :
    ASPxGridPagerSettings
vb
Public Class ASPxGridViewPagerSettings
    Inherits ASPxGridPagerSettings

The following members return ASPxGridViewPagerSettings objects:

LibraryRelated API Members
ASP.NET Web Forms ControlsASPxGridView.SettingsPager
GridViewProperties.SettingsPager
ASP.NET MVC ExtensionsGridViewSettings.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:

aspx
<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:

razor
@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()

Implements

IStateManager

IPropertiesOwner

Inheritance

Object StateManager PropertiesBase PagerSettingsEx ASPxGridPagerSettings ASPxGridViewPagerSettings BootstrapGridViewPagerSettings

See Also

ASPxGridViewPagerSettings Members

SettingsPager

PagerSettingsEx

Grid View

DevExpress.Web Namespace