System.Web.UI.WebControls.PagedDataSource Class

Encapsulates the paging-related properties of a data-bound control (such as System.Web.UI.WebControls.DataGrid, System.Web.UI.WebControls.GridView, System.Web.UI.WebControls.DetailsView, and System.Web.UI.WebControls.FormView) that allow it to perform paging. This class cannot be inherited.

See Also: PagedDataSource Members

Syntax

public sealed class PagedDataSource : ICollection, System.ComponentModel.ITypedList

Remarks

The System.Web.UI.WebControls.PagedDataSource class encapsulates the properties that allow data-source controls, such as the System.Web.UI.WebControls.DataGrid, System.Web.UI.WebControls.GridView, System.Web.UI.WebControls.DetailsView, and System.Web.UI.WebControls.FormView, to perform paging. This class is used by control developers when providing paging support to a custom data-bound control.

This class uses the best available method to enumerate over the data belonging to the current page. If the underlying data source supports indexed access (such as Array and IList), this class uses it. Otherwise, it uses the enumerator created by the IEnumerable.GetEnumerator method.

For a list of initial property values for an instance of System.Web.UI.WebControls.PagedDataSource, see the PagedDataSource.#ctor constructor.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0