DataGrid.InitializePager(DataGridItem, Int32, PagedDataSource) Method

Definition

Creates a DataGridItem object that contains the paging UI.

C#
protected virtual void InitializePager(System.Web.UI.WebControls.DataGridItem item, int columnSpan, System.Web.UI.WebControls.PagedDataSource pagedDataSource);

Parameters

item
DataGridItem

The DataGridItem that contains the pager.

columnSpan
Int32

The number of columns to span the pager.

pagedDataSource
PagedDataSource

A PagedDataSource that contains the properties for the pager.

Remarks

The paging UI is a navigation bar that is a built into a single TableCell that spans across all columns of a DataGrid control. The InitializePager method is a helper method used by the DataGrid class to create the pager row.

Poznámka

This method is primarily used by control developers.

Applies to

Produkt Verzie
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also