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)

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

public class ListViewPagedDataSource : ICollection, IEnumerable, 
	ITypedList

NameDescription
System_CAPS_pubmethodListViewPagedDataSource()

Initializes a new instance of the ListViewPagedDataSource class.

NameDescription
System_CAPS_pubpropertyAllowServerPaging

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

System_CAPS_pubpropertyCount

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

System_CAPS_pubpropertyDataSource

Gets or sets the data source.

System_CAPS_pubpropertyDataSourceCount

Gets the number of items in the data source.

System_CAPS_pubpropertyIsReadOnly

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

System_CAPS_pubpropertyIsServerPagingEnabled

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

System_CAPS_pubpropertyIsSynchronized

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

System_CAPS_pubpropertyMaximumRows

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

System_CAPS_pubpropertyStartRowIndex

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

System_CAPS_pubpropertySyncRoot

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

System_CAPS_pubpropertyTotalRowCount

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

NameDescription
System_CAPS_pubmethodCopyTo(Array, Int32)

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

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

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

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetItemProperties(PropertyDescriptor[])

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

System_CAPS_pubmethodGetListName(PropertyDescriptor[])

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

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast<TResult>()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

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

Return to top
Show: