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

定義

設定資料頁的屬性。

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

參數

startRowIndex
Int32

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

maximumRows
Int32

單一頁面上的最大項目數。

databind
Boolean

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

備註

SetPageProperties DataPager 每次控制項必須更新頁面相關屬性時,控制項就會呼叫方法。 由類別執行時, SetPageProperties 方法必須使用和參數的值,在內部更新 MaximumRowsStartRowIndex 屬性 maximumRows startRowIndex

適用於

另請參閱