DataPager.CreatePagerFields Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates the DataPagerField objects that are contained by the Fields property of the DataPager control.
protected:
virtual void CreatePagerFields();
protected virtual void CreatePagerFields ();
abstract member CreatePagerFields : unit -> unit
override this.CreatePagerFields : unit -> unit
Protected Overridable Sub CreatePagerFields ()
Remarks
The CreatePagerFields method is used by the PageSize property and by the OnTotalRowCountAvailable method to create the DataPagerField objects that are contained by the Fields property. This method calls the DataPagerField.CreateDataPagers method to create the user interface (UI) controls for each field in the collection.
The pager fields are created in the DataPager control in the order that the pager fields appear in the Fields collection. The following table shows the pager field classes that derive from the DataPagerField class and that can be created in the DataPager control.
Pager field type | Description |
---|---|
NextPreviousPagerField | Enables users to navigate through pages of data one page at a time, or to jump to the first or last page of data. |
NumericPagerField | Enables users to select a page of data by page number. |
TemplatePagerField | Enables you to create a custom paging UI. |
Applies to
See also
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應