IPageableItemContainer.SetPageProperties(Int32, Int32, Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
設定一頁資料的屬性。
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方法必須在內部透過 and MaximumRows 參數的值StartRowIndex來更新 maximumRows and startRowIndex 屬性。