DataPager.SetPageProperties(Int32, Int32, Boolean) DataPager.SetPageProperties(Int32, Int32, Boolean) DataPager.SetPageProperties(Int32, Int32, Boolean) DataPager.SetPageProperties(Int32, Int32, Boolean) Method

定義

DataPager 控制項中設定頁面相關屬性。Sets the page-related properties in the DataPager control.

public:
 virtual void SetPageProperties(int startRowIndex, int maximumRows, bool databind);
public virtual void SetPageProperties (int startRowIndex, int maximumRows, bool databind);
abstract member SetPageProperties : int * int * bool -> unit
override this.SetPageProperties : int * int * bool -> unit
Public Overridable Sub SetPageProperties (startRowIndex As Integer, maximumRows As Integer, databind As Boolean)

參數

startRowIndex
Int32 Int32 Int32 Int32

資料頁上第一筆資料錄的索引。The index of the first record on the page of data.

maximumRows
Int32 Int32 Int32 Int32

單一資料頁上的最大項目數。The maximum number of items on a single page of data.

databind
Boolean Boolean Boolean Boolean

在屬性設定後重新繫結控制項,則為 true,否則為 falsetrue to rebind the control after the properties are set; otherwise, false.

例外狀況

DataPager 控制項沒有關聯的資料繫結控制項。There is no data-bound control associated with the DataPager control.

備註

方法會StartRowIndex為和MaximumRows屬性設定新的值。 SetPagePropertiesThe SetPageProperties method sets new values for the StartRowIndex and MaximumRows properties. 它也IPageableItemContainer.SetPageProperties會叫用方法, 以在相關聯的資料繫結控制項中更新與頁面相關的屬性。It also invokes the IPageableItemContainer.SetPageProperties method to update the page-related properties in the associated data-bound control.

適用於

另請參閱