Export (0) Print
Expand All

DataPager.CreatePagerFields Method

Creates the DataPagerField objects that are contained by the Fields property of the DataPager control.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

protected virtual void CreatePagerFields()

The CreatePagerFields method is used by the PageSize property and by the OnTotalRowCountAvailable method to create the DataPagerField objects that are contained by the Fields property. This method calls the DataPagerField.CreateDataPagers method to create the user interface (UI) controls for each field in the collection.

The pager fields are created in the DataPager control in the order that the pager fields appear in the Fields collection. The following table shows the pager field classes that derive from the DataPagerField class and that can be created in the DataPager control.

Pager field type

Description

NextPreviousPagerField

Enables users to navigate through pages of data one page at a time, or to jump to the first or last page of data.

NumericPagerField

Enables users to select a page of data by page number.

TemplatePagerField

Enables you to create a custom paging UI.

.NET Framework

Supported in: 4.5, 4, 3.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft