แก้ไข

แชร์ผ่าน


DataPagerField.CreateDataPagers Method

Definition

When overridden in a derived class, creates the user interface (UI) controls for the data pager field object and adds them to the specified container.

public:
 abstract void CreateDataPagers(System::Web::UI::WebControls::DataPagerFieldItem ^ container, int startRowIndex, int maximumRows, int totalRowCount, int fieldIndex);
public abstract void CreateDataPagers (System.Web.UI.WebControls.DataPagerFieldItem container, int startRowIndex, int maximumRows, int totalRowCount, int fieldIndex);
abstract member CreateDataPagers : System.Web.UI.WebControls.DataPagerFieldItem * int * int * int * int -> unit
Public MustOverride Sub CreateDataPagers (container As DataPagerFieldItem, startRowIndex As Integer, maximumRows As Integer, totalRowCount As Integer, fieldIndex As Integer)

Parameters

container
DataPagerFieldItem

The container that is used to store the controls.

startRowIndex
Int32

The index of the first record on the page.

maximumRows
Int32

The maximum number of items on a single page.

totalRowCount
Int32

The total number of items.

fieldIndex
Int32

The index of the data pager field in the Fields collection.

Remarks

The CreateDataPagers method is a helper method that is used by the DataPager.CreatePagerFields method to create the UI controls for the data pager field.

Applies to

See also