Bewerken

Delen via


DataPager.OnTotalRowCountAvailable(Object, PageEventArgs) Method

Definition

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)

Parameters

sender
Object

The source of the event.

e
PageEventArgs

The event data.

Remarks

The ListView control raises the IPageableItemContainer.TotalRowCountAvailable event when the total number of records in its underlying data source is available. The OnTotalRowCountAvailable method is a handler for this event and is responsible for updating the page-related properties and recreating the pager field objects.

Applies to

See also