Data Paging
- 2 minutes to read
The GridControl allows you to display its content across multiple pages. End-users can use the built-in pager to navigate through the GridControl’s data:
Note
The Tree
#Enabling Data Paging
Set the GridViewBase.AllowPaging property to true to enable data paging:
<dxg:GridControl>
<!---->
<dxg:GridControl.View>
<dxg:TableView AllowPaging="True" />
</dxg:GridControl.View>
</dxg:GridControl>
The table below describes how Data Paging works depending on the data binding mode:
Data Binding Mode | How Data Paging Works |
---|---|
The Grid | |
The Grid The Grid | |
The Paged The Grid |
#Data Paging Options
The GridControl has the following properties and events to allow you to control data paging manually:
Method | Description |
---|---|
Grid |
Gets or sets the maximum number of rows that can be displayed on a page. |
Grid |
Gets or sets the index of the current page. |
Grid |
Gets the number of pages displayed in the Grid |
Grid |
Gets or sets the maximum number of numeric buttons that can be displayed within the pager control. |
Grid |
Occurs before the selected page is changed. |
Grid |
Occurs after the selected page is changed. |
#Data Paging Limitations
Data paging does not support the following features:
- Grouping data
- New Item Row in the bottom position
- Fixed Rows
- Master-Detail Data Representation