NextPreviousPagerField.CreateDataPagers Method

Definition

Creates the user interface (UI) controls for the pager field object and adds them to the specified container.

public override void CreateDataPagers (System.Web.UI.WebControls.DataPagerFieldItem container, int startRowIndex, int maximumRows, int totalRowCount, int fieldIndex);

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 used by the DataPager.CreatePagerFields method to create the UI controls for the pager field, such as the Previous and Next buttons.

Applies to

Produk Versi
.NET Framework 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