GridView.InitializePager(GridViewRow, Int32, PagedDataSource) Method

Definition

Initializes the pager row displayed when the paging feature is enabled.

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

Parameters

row
GridViewRow

A GridViewRow that represents the pager row to initialize.

columnSpan
Int32

The number of columns the pager row should span.

pagedDataSource
PagedDataSource

A PagedDataSource that represents the data source.

Remarks

The InitializePager method is used to initialize the pager row displayed when the paging feature is enabled.

Note

This method is used primarily by control developers to extend the GridView control.

Applies to

Product Versions
.NET Framework 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