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 该方法来更新关联数据绑定控件中的页面相关属性。

适用于

另请参阅