Breyta

Deila með


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
ListViewPagedDataSource
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()

Initializes a new instance of the ListViewPagedDataSource class.

Properties

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.

Methods

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)

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

(Inherited from Object)
GetEnumerator()

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

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetItemProperties(PropertyDescriptor[])

Returns a 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()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Extension Methods

Cast<TResult>(IEnumerable)

Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable)

Enables parallelization of a query.

AsQueryable(IEnumerable)

Converts an IEnumerable to an IQueryable.

Applies to

See also