ASPxGridViewPagerSettings.Mode Property
Specifies whether the Grid View control splits its content across multiple pages.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
[DefaultValue(GridViewPagerMode.ShowPager)]
public GridViewPagerMode Mode { get; set; }
#Property Value
Type | Default | Description |
---|---|---|
Grid |
Show |
An enumeration value. |
Available values:
Name | Description |
---|---|
Show |
Disables page-mode navigation. |
Show |
The ASPx |
Endless |
The endless paging is enabled. |
#Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to Mode |
---|---|---|
ASP. |
Grid |
|
MVCx |
|
|
ASP. |
ASPx |
|
Grid |
|
#Remarks
The Grid View control automatically splits its content across multiple pages. The built-in pager allows users to navigate through the control’s data. Refer to the following topic for more information: Data Paging.
Set the Mode
property to ShowAllRecords
to display all grid rows on one page. To enable endless paging mode, set the Mode
property to EndlessPaging
. Note that you cannot enable or disable the endless paging mode on a callback. Refer to one of the following topics for more information about endless paging mode and its limitations:
The example below demonstrates how to enable endless page mode:
<dx:ASPxGridView ID="GridView" runat="server" DataSourceID="DataSource" KeyFieldName="OrderID">
<Columns>
<!-- ... -->
</Columns>
<SettingsPager Mode="EndlessPaging"/>
</dx:ASPxGridView>
#Online Demos
- ASPxGridView - Pager Settings
- ASPxGridView - SEO Friendly Paging
- ASPxGridView - Endless Paging
- MVCxGridView - Paging
- MVCxGridView - SEO Friendly Paging
- MVCxGridView - Endless Paging