PagedDataSource Class
 

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

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

SystemObject
  System.Web.UI.WebControlsPagedDataSource

public sealed class PagedDataSource : ICollection, IEnumerable, 
	ITypedList
public ref class PagedDataSource sealed : ICollection, IEnumerable, 
	ITypedList
[<Sealed>]
type PagedDataSource = 
    class
        interface ICollection
        interface IEnumerable
        interface ITypedList
    end
Public NotInheritable Class PagedDataSource
	Implements ICollection, IEnumerable, ITypedList
NameDescription
System_CAPS_pubmethod PagedDataSource

Initializes a new instance of the PagedDataSource class.

NameDescription
System_CAPS_pubproperty

Gets or sets a value indicating whether custom paging is enabled in a data-bound control.

System_CAPS_pubproperty

Gets or sets a value indicating whether paging is enabled in a data-bound control.

System_CAPS_pubproperty

Gets or sets a value indicating whether server-side paging is enabled.

System_CAPS_pubproperty

Gets the number of items to be used from the data source.

System_CAPS_pubproperty

Gets or sets the index of the current page.

System_CAPS_pubproperty

Gets or sets the data source.

System_CAPS_pubproperty

Gets the number of items in the data source.

System_CAPS_pubproperty

Gets the index of the first record displayed on the page.

System_CAPS_pubproperty

Gets a value indicating whether custom paging is enabled.

System_CAPS_pubproperty

Gets a value indicating whether the current page is the first page.

System_CAPS_pubproperty

Gets a value indicating whether the current page is the last page.

System_CAPS_pubproperty

Gets a value indicating whether paging is enabled.

System_CAPS_pubproperty

Gets a value indicating whether the data source is read-only.

System_CAPS_pubproperty

Gets a value indicating whether server-side paging support is enabled.

System_CAPS_pubproperty

Gets a value indicating whether access to the data source is synchronized (thread-safe).

System_CAPS_pubproperty

Gets the total number of pages necessary to display all items in the data source.

System_CAPS_pubproperty

Gets or sets the number of items to display on a single page.

System_CAPS_pubproperty

Gets the object that can be used to synchronize access to the collection.

System_CAPS_pubproperty

Gets or sets the virtual number of items in the data source when custom paging is used.

NameDescription
System_CAPS_pubmethod CopyTo

Copies all the items from the data source to the specified SystemArray, starting at the specified index in the SystemArray.

System_CAPS_pubmethod Equals

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethod GetEnumerator

Returns a System.CollectionsIEnumerator implemented object that contains all items in the data source.

System_CAPS_pubmethod GetHashCode

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethod GetItemProperties

Returns the System.ComponentModelPropertyDescriptorCollection that represents the properties on each item used to bind data.

System_CAPS_pubmethod GetListName

Returns the name of the list. This method does not apply to this class.

System_CAPS_pubmethod GetType

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethod ToString

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubmethod AsParallel

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethod AsQueryable

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethod Cast

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethod OfType

Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.)

The PagedDataSource class encapsulates the properties that allow data-source controls, such as the DataGrid, GridView, DetailsView, and 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 SystemArray and System.CollectionsIList), this class uses it. Otherwise, it uses the enumerator created by the GetEnumerator method.

For a list of initial property values for an instance of PagedDataSource, see the PagedDataSource constructor.

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top