DataPager.ConnectToEvents(IPageableItemContainer) DataPager.ConnectToEvents(IPageableItemContainer) DataPager.ConnectToEvents(IPageableItemContainer) DataPager.ConnectToEvents(IPageableItemContainer) Method

定義

將事件連接至 DataPager 控制項中的事件處理常式方法。Connects events to event handler methods in the DataPager control.

protected:
 virtual void ConnectToEvents(System::Web::UI::WebControls::IPageableItemContainer ^ container);
protected virtual void ConnectToEvents (System.Web.UI.WebControls.IPageableItemContainer container);
abstract member ConnectToEvents : System.Web.UI.WebControls.IPageableItemContainer -> unit
override this.ConnectToEvents : System.Web.UI.WebControls.IPageableItemContainer -> unit
Protected Overridable Sub ConnectToEvents (container As IPageableItemContainer)

參數

container
IPageableItemContainer IPageableItemContainer IPageableItemContainer IPageableItemContainer

引發 TotalRowCountAvailable 事件的資料繫結控制項。The data-bound control that raises the TotalRowCountAvailable event.

例外狀況

備註

方法會將OnTotalRowCountAvailable方法指定IPageableItemContainer.TotalRowCountAvailable為中container所指定控制項之事件的處理常式。 ConnectToEventsThe ConnectToEvents method specifies the OnTotalRowCountAvailable method as the handler for the IPageableItemContainer.TotalRowCountAvailable event of the control specified in container. 參數必須包含可IPageableItemContainer執行ListView介面的資料繫結控制項, 例如控制項。 containerThe container parameter must contain a data-bound control that implements the IPageableItemContainer interface, such as a ListView control.

注意

這個方法主要是由控制項開發人員用來擴充DataPager控制項。This method is primarily used by control developers to extend the DataPager control.

適用於

另請參閱