This documentation is archived and is not being maintained.

ListViewPagedDataSource Class

Encapsulates the paging-related properties of a ListView control.


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

public class ListViewPagedDataSource : ICollection, 
	IEnumerable, ITypedList

The ListViewPagedDataSource type exposes the following members.

Public methodListViewPagedDataSourceInitializes a new instance of the ListViewPagedDataSource class.

Public propertyAllowServerPagingGets or sets a value that indicates whether server-based paging is enabled.
Public propertyCountGets the number of items that will be used from the data source for the current page.
Public propertyDataSourceGets or sets the data source.
Public propertyDataSourceCountGets the number of items in the data source.
Public propertyIsReadOnlyGets a value that indicates whether the ListViewPagedDataSource object is read-only.
Public propertyIsServerPagingEnabledGets a value that indicates whether server-based paging is enabled.
Public propertyIsSynchronizedGets a value that indicates whether access to the data source is synchronized (thread-safe).
Public propertyMaximumRowsGets or sets the maximum number of items to display on a single page.
Public propertyStartRowIndexGets or sets the index of the first record displayed on the page.
Public propertySyncRootGets an object that can be used to synchronize access to the collection.
Public propertyTotalRowCountGets or sets the total number of items in the data source when server-based paging is being used.

Public methodCopyToCopies all the items from the data source to the specified System.Array object, starting at the specified index in System.Array.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetEnumeratorReturns an object that implements System.Collections.IEnumerator and that contains all items in the data source.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetItemPropertiesReturns a System.ComponentModel.PropertyDescriptorCollection object that represents the properties that are used to bind data.
Public methodGetListNameReturns the name of the list. This method does not apply to this class.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

Public Extension MethodAsParallelEnables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension MethodAsQueryableConverts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension MethodCast<TResult>Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodOfType<TResult>Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)

The ListViewPagedDataSource class encapsulates the properties that enable the ListView control to perform paging.

This class uses the best available method to enumerate the associated data. If the underlying data source supports indexed access (such as System.Array and System.Collections.IList objects), the class uses that access. Otherwise, the class uses the enumerator that is created by the GetEnumerator method.

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

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

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