DataPager.OnTotalRowCountAvailable(Object, PageEventArgs) DataPager.OnTotalRowCountAvailable(Object, PageEventArgs) DataPager.OnTotalRowCountAvailable(Object, PageEventArgs) DataPager.OnTotalRowCountAvailable(Object, PageEventArgs) Method

定義

處理 TotalRowCountAvailable 事件。Handles the TotalRowCountAvailable event.

protected:
 virtual void OnTotalRowCountAvailable(System::Object ^ sender, System::Web::UI::WebControls::PageEventArgs ^ e);
protected virtual void OnTotalRowCountAvailable (object sender, System.Web.UI.WebControls.PageEventArgs e);
abstract member OnTotalRowCountAvailable : obj * System.Web.UI.WebControls.PageEventArgs -> unit
override this.OnTotalRowCountAvailable : obj * System.Web.UI.WebControls.PageEventArgs -> unit
Protected Overridable Sub OnTotalRowCountAvailable (sender As Object, e As PageEventArgs)

參數

sender
Object Object Object Object

事件的來源。The source of the event.

e
PageEventArgs PageEventArgs PageEventArgs PageEventArgs

事件資料。The event data.

備註

ListView基礎資料來源IPageableItemContainer.TotalRowCountAvailable中的記錄總數可供使用時, 控制項會引發事件。The ListView control raises the IPageableItemContainer.TotalRowCountAvailable event when the total number of records in its underlying data source is available. OnTotalRowCountAvailable方法是此事件的處理常式, 負責更新與頁面相關的屬性, 以及重新建立呼機欄位物件。The OnTotalRowCountAvailable method is a handler for this event and is responsible for updating the page-related properties and recreating the pager field objects.

適用於

另請參閱