This documentation is archived and is not being maintained.

IPageableItemContainer Interface

Defines members that a data-bound control must implement in order to have paging functionality provided by the DataPager control.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public interface IPageableItemContainer

The IPageableItemContainer type exposes the following members.

Public propertyMaximumRowsGets the maximum number of items to display on a single page of data.
Public propertyStartRowIndexGets the index of the first record that is displayed on a page of data.

Public methodSetPagePropertiesSets the properties of a page of data.

Public eventTotalRowCountAvailableOccurs when the data from the data source is made available to the control.

The 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. (An example of a control that implements this interface is the ListView control.)

The TotalRowCountAvailable event is raised when the DataPager control can bind to data. The DataPager control provides a handler for this event that is named OnTotalRowCountAvailable.

The 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.

.NET Framework

Supported in: 4, 3.5

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.