DataPager.SetPageProperties(Int32, Int32, Boolean) 方法

定義

DataPager 控制項中設定頁面相關屬性。

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

資料頁上第一筆資料錄的索引。

maximumRows
Int32

單一資料頁上的最大項目數。

databind
Boolean

在屬性設定後重新繫結控制項,則為 true,否則為 false

例外狀況

DataPager 控制項沒有關聯的資料繫結控制項。

備註

方法會 SetPageProperties 設定 和 MaximumRows 屬性的新值 StartRowIndex 。 它也會叫 IPageableItemContainer.SetPageProperties 用 方法來更新相關聯資料繫結控制項中的頁面相關屬性。

適用於

另請參閱