Edit this page

Paging Overview

The data layer of RadGridView now supports pagination of data natively. You can still bind RadGridView to the same data providers as before with the addition of the paging option. There is a number of features, which will allow you to easily configure and manage the paging of the data.

gridview-paging-overview 001

To access the public API for paging you need to use the RadGridView.MasterTemplate property exposing the MasterGridViewTemplate object. Here are the more important properties and methods:

  • EnablePaging: Gets or sets a value indicating whether paging is enabled.

  • PageSize: Gets or sets the number of items shown per page.

  • TotalPages: Gets the total number of pages.

  • PageIndex: Gets the zero-based index of the current page.

  • CanChangePage: Gets a value indicating whether page change is possible.

  • IsPageChanging: Gets a value indicating whether a page change operation is underway.

  • MoveToFirstPage: Moves RadGridView to its first page.

  • MoveToPreviousPage: Moves RadGridView to the previous page.

  • MoveToPage(int pageIndex): Moves RadGridView to a specific page.

  • MoveToNextPage: Moves RadGridView to the next page.

  • MoveToLastPage: Moves RadGridView to its last page.

  • PagingBeforeGrouping: Gets or sets a value indicating whether paging is performed before grouping or vice versa.

See Also