IPageableItemContainer 介面

定義

定義當資料繫結控制項要具有 DataPager 控制項提供的分頁功能時,所必須實作的成員。Defines members that a data-bound control must implement in order to have paging functionality provided by the DataPager control.

public interface class IPageableItemContainer
public interface IPageableItemContainer
type IPageableItemContainer = interface
Public Interface IPageableItemContainer
衍生

備註

介面會定義屬性、方法和事件, 必須由資料繫結控制項來執行, 才能擁有控制項提供的DataPager分頁功能。 IPageableItemContainerThe IPageableItemContainer interface defines properties, methods, and events that must be implemented by data-bound controls in order to have paging functionality provided by the DataPager control. ( ListView控制項的範例是實作為此介面的控制項)。(An example of a control that implements this interface is the ListView control.)

當控制項可以系結至資料時, 就會引發事件。TotalRowCountAvailable DataPagerThe TotalRowCountAvailable event is raised when the DataPager control can bind to data. 控制項會為這個名OnTotalRowCountAvailable為的事件提供處理常式。 DataPagerThe DataPager control provides a handler for this event that is named OnTotalRowCountAvailable.

每當控制項必須更新與頁面DataPager相關的屬性時, 控制項就會呼叫方法。SetPagePropertiesThe SetPageProperties method is called by the DataPager control every time that the control must update the page-related properties. 例如, 當使用者流覽至另一個頁面的資料時, 會呼叫這個方法。For example, this method is called when the user navigates to another page of data.

屬性

MaximumRows

取得或設定在單一資料頁上顯示的最大項目數。Gets the maximum number of items to display on a single page of data.

StartRowIndex

取得資料頁上顯示的第一筆資料錄的索引。Gets the index of the first record that is displayed on a page of data.

方法

SetPageProperties(Int32, Int32, Boolean)

設定資料頁的屬性。Sets the properties of a page of data.

事件

TotalRowCountAvailable

發生於控制項可以使用資料來源中的資料時。Occurs when the data from the data source is made available to the control.

適用於

另請參閱