ערוך

שתף באמצעות


DataGrid.InitializePager(DataGridItem, Int32, PagedDataSource) Method

Definition

Creates a DataGridItem object that contains the paging UI.

protected:
 virtual void InitializePager(System::Web::UI::WebControls::DataGridItem ^ item, int columnSpan, System::Web::UI::WebControls::PagedDataSource ^ pagedDataSource);
protected virtual void InitializePager (System.Web.UI.WebControls.DataGridItem item, int columnSpan, System.Web.UI.WebControls.PagedDataSource pagedDataSource);
abstract member InitializePager : System.Web.UI.WebControls.DataGridItem * int * System.Web.UI.WebControls.PagedDataSource -> unit
override this.InitializePager : System.Web.UI.WebControls.DataGridItem * int * System.Web.UI.WebControls.PagedDataSource -> unit
Protected Overridable Sub InitializePager (item As DataGridItem, columnSpan As Integer, pagedDataSource As 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.

Note

This method is primarily used by control developers.

Applies to

See also