PagedDataSource.FirstIndexInPage 屬性

定義

取得顯示在頁面上第一個記錄的索引。

public:
 property int FirstIndexInPage { int get(); };
public int FirstIndexInPage { get; }
member this.FirstIndexInPage : int
Public ReadOnly Property FirstIndexInPage As Integer

屬性值

Int32

顯示在頁面上第一個記錄的索引。

備註

FirstIndexInPage 可以使用屬性來判斷目前頁面上第一個專案的索引。

注意

如果 IsPagingEnabled 屬性設定為 false ,或 IsCustomPagingEnabledAllowServerPaging 屬性設定為 true ,或 DataSource 屬性包含 null ,則會傳回0。

適用於

另請參閱