ListViewPagedDataSource Class
Encapsulates the paging-related properties of a ListView control.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
| Name | Description | |
|---|---|---|
![]() | ListViewPagedDataSource() | Initializes a new instance of the ListViewPagedDataSource class. |
| Name | Description | |
|---|---|---|
![]() | AllowServerPaging | Gets or sets a value that indicates whether server-based paging is enabled. |
![]() | Count | Gets the number of items that will be used from the data source for the current page. |
![]() | DataSource | Gets or sets the data source. |
![]() | DataSourceCount | Gets the number of items in the data source. |
![]() | IsReadOnly | Gets a value that indicates whether the ListViewPagedDataSource object is read-only. |
![]() | IsServerPagingEnabled | Gets a value that indicates whether server-based paging is enabled. |
![]() | IsSynchronized | Gets a value that indicates whether access to the data source is synchronized (thread-safe). |
![]() | MaximumRows | Gets or sets the maximum number of items to display on a single page. |
![]() | StartRowIndex | Gets or sets the index of the first record displayed on the page. |
![]() | SyncRoot | Gets an object that can be used to synchronize access to the collection. |
![]() | TotalRowCount | Gets or sets the total number of items in the data source when server-based paging is being used. |
| Name | Description | |
|---|---|---|
![]() | CopyTo(Array, Int32) | Copies all the items from the data source to the specified System.Array object, starting at the specified index in System.Array. |
![]() | Equals(Object) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetEnumerator() | Returns an object that implements System.Collections.IEnumerator and that contains all items in the data source. |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetItemProperties(PropertyDescriptor[]) | Returns a System.ComponentModel.PropertyDescriptorCollection object that represents the properties that are used to bind data. |
![]() | GetListName(PropertyDescriptor[]) | Returns the name of the list. This method does not apply to this class. |
![]() | GetType() | |
![]() | MemberwiseClone() | |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() | AsParallel() | Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.) |
![]() | AsQueryable() | Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.) |
![]() | Cast<'TResult>() | Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.) |
![]() | OfType<'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.
Available since 3.5
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


