Show / Hide Table of Contents

Interface IPagedCollectionView

Interface used to drive paging of collection views.

Namespace: System.ComponentModel
Assembly: OpenSilver.Data.dll
Syntax
public interface IPagedCollectionView

Properties

| Improve this Doc View Source

CanChangePage

Gets a value indicating whether the PageIndex value is allowed to change or not.

Declaration
bool CanChangePage { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

IsPageChanging

Gets a value indicating whether a page index change is in process or not.

Declaration
bool IsPageChanging { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

ItemCount

Gets the number of known items in the view before paging is applied.

Declaration
int ItemCount { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

PageIndex

Gets the current page we are on. (zero based)

Declaration
int PageIndex { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

PageSize

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

Declaration
int PageSize { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

TotalItemCount

Gets the total number of items in the view before paging is applied, or -1 if that total number is unknown.

Declaration
int TotalItemCount { get; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

MoveToFirstPage()

Moves to the first page.

Declaration
bool MoveToFirstPage()
Returns
Type Description
System.Boolean

Whether or not the move was successful.

| Improve this Doc View Source

MoveToLastPage()

Moves to the last page.

Declaration
bool MoveToLastPage()
Returns
Type Description
System.Boolean

Whether or not the move was successful.

| Improve this Doc View Source

MoveToNextPage()

Moves to the page after the current page we are on.

Declaration
bool MoveToNextPage()
Returns
Type Description
System.Boolean

Whether or not the move was successful.

| Improve this Doc View Source

MoveToPage(Int32)

Moves to page pageIndex.

Declaration
bool MoveToPage(int pageIndex)
Parameters
Type Name Description
System.Int32 pageIndex

The index of the page to which to move.

Returns
Type Description
System.Boolean

Whether or not the move was successful.

| Improve this Doc View Source

MoveToPreviousPage()

Moves to the page before the current page we are on.

Declaration
bool MoveToPreviousPage()
Returns
Type Description
System.Boolean

Whether or not the move was successful.

Events

| Improve this Doc View Source

PageChanged

Raised when a page index change completed.

Declaration
event EventHandler<EventArgs> PageChanged
Event Type
Type Description
System.EventHandler<System.EventArgs>
| Improve this Doc View Source

PageChanging

Raised when a page index change is requested.

Declaration
event EventHandler<PageChangingEventArgs> PageChanging
Event Type
Type Description
System.EventHandler<PageChangingEventArgs>
  • Improve this Doc
  • View Source