ListViewPagedDataSource ListViewPagedDataSource ListViewPagedDataSource ListViewPagedDataSource Class

Definition

Encapsulates the paging-related properties of a ListView control.

public ref class ListViewPagedDataSource : System::Collections::ICollection, System::ComponentModel::ITypedList
public class ListViewPagedDataSource : System.Collections.ICollection, System.ComponentModel.ITypedList
type ListViewPagedDataSource = class
    interface ICollection
    interface IEnumerable
    interface ITypedList
Public Class ListViewPagedDataSource
Implements ICollection, ITypedList
Inheritance
ListViewPagedDataSourceListViewPagedDataSourceListViewPagedDataSourceListViewPagedDataSource
Implements

Remarks

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.

Constructors

ListViewPagedDataSource() ListViewPagedDataSource() ListViewPagedDataSource() ListViewPagedDataSource()

Initializes a new instance of the ListViewPagedDataSource class.

Properties

AllowServerPaging AllowServerPaging AllowServerPaging AllowServerPaging

Gets or sets a value that indicates whether server-based paging is enabled.

Count Count Count Count

Gets the number of items that will be used from the data source for the current page.

DataSource DataSource DataSource DataSource

Gets or sets the data source.

DataSourceCount DataSourceCount DataSourceCount DataSourceCount

Gets the number of items in the data source.

IsReadOnly IsReadOnly IsReadOnly IsReadOnly

Gets a value that indicates whether the ListViewPagedDataSource object is read-only.

IsServerPagingEnabled IsServerPagingEnabled IsServerPagingEnabled IsServerPagingEnabled

Gets a value that indicates whether server-based paging is enabled.

IsSynchronized IsSynchronized IsSynchronized IsSynchronized

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

MaximumRows MaximumRows MaximumRows MaximumRows

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

StartRowIndex StartRowIndex StartRowIndex StartRowIndex

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

SyncRoot SyncRoot SyncRoot SyncRoot

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

TotalRowCount TotalRowCount TotalRowCount TotalRowCount

Gets or sets the total number of items in the data source when server-based paging is being used.

Methods

CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

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

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

Returns an object that implements IEnumerator and that contains all items in the data source.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetItemProperties(PropertyDescriptor[]) GetItemProperties(PropertyDescriptor[]) GetItemProperties(PropertyDescriptor[]) GetItemProperties(PropertyDescriptor[])

Returns a PropertyDescriptorCollection object that represents the properties that are used to bind data.

GetListName(PropertyDescriptor[]) GetListName(PropertyDescriptor[]) GetListName(PropertyDescriptor[]) GetListName(PropertyDescriptor[])

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

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to

See also