ListViewPagedDataSource Class

Encapsulates the paging-related properties of a ListView control.

System.Object
  System.Web.UI.WebControls.ListViewPagedDataSource

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

'Declaration
Public Class ListViewPagedDataSource _
	Implements ICollection, IEnumerable, ITypedList

The ListViewPagedDataSource type exposes the following members.

  NameDescription
Public methodListViewPagedDataSourceInitializes a new instance of the ListViewPagedDataSource class.
Top

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

  NameDescription
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 the default hash function. (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.)
Top

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

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.5, 4, 3.5

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft