New to Telerik UI for WinFormsStart a free 30-day trial

Definition

Namespace:Telerik.WinControls.Data

Assembly:Telerik.WinControls.dll

Syntax:

C#
public interface IPagedCollectionView

Derived Classes: RadCollectionView<TDataItem>RadDataView<TDataItem>GridDataViewTemplateDataView

Properties

Gets a value that indicates whether the IPagedCollectionView.PageIndex value is allowed to change.

C#
bool CanChangePage { get; }
Property Value:

true if the IPagedCollectionView.PageIndex value is allowed to change; otherwise, false.

Gets a value indicating whether this data view can be paginated.

C#
bool CanPage { get; }
Property Value:

true if this data view can be paginated; otherwise, false.

Gets a value that indicates whether a page index change is in process.

C#
bool IsPageChanging { get; }
Property Value:

true if the page index is changing; otherwise, false.

Gets the total number of items in the source collection.

C#
int ItemCount { get; }
Property Value:

The total number of items in the source collection, or -1 if the total number is unknown.

Gets the zero-based index of the current page.

C#
int PageIndex { get; }
Property Value:

The zero-based index of the current page.

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

C#
int PageSize { get; set; }
Property Value:

The number of items to display on a page.

Methods

Sets the first page as the current page.

C#
bool MoveToFirstPage()
Returns:

bool

true if the operation was successful; otherwise, false.

Sets the last page as the current page.

C#
bool MoveToLastPage()
Returns:

bool

true if the operation was successful; otherwise, false.

Moves to the page after the current page.

C#
bool MoveToNextPage()
Returns:

bool

true if the operation was successful; otherwise, false.

Requests a page move to the page at the specified index.

C#
bool MoveToPage(int pageIndex)
Parameters:pageIndexint

The index of the page to move to.

Returns:

bool

true if the operation was successful; otherwise, false.

Moves to the page before the current page.

C#
bool MoveToPreviousPage()
Returns:

bool

true if the operation was successful; otherwise, false.

Events

Occurs when the IPagedCollectionView.PageIndex has changed.

C#
event EventHandler<EventArgs> PageChanged

Occurs before the IPagedCollectionView.PageIndex is changed.

C#
event EventHandler<PageChangingEventArgs> PageChanging