DataPager.OnTotalRowCountAvailable(Object, PageEventArgs) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.