Table of Contents

Class XPPageSelector

Namespace
DevExpress.Xpo
Assembly
DevExpress.Xpo.v24.1.dll

Presents the XPCollection as a pageable collection.

public class XPPageSelector : Component, IComponent, IDisposable, IListSource
Inheritance
XPPageSelector
Implements
Inherited Members

Constructors

XPPageSelector()

Initializes a new instance of the XPPageSelector class with default settings.

public XPPageSelector()

XPPageSelector(XPBaseCollection)

Initializes a new instance of the XPPageSelector class with the specified collection.

public XPPageSelector(XPBaseCollection collection)

Parameters

collection XPBaseCollection

An XPBaseCollection descendant which represents the collection of persistent objects. This value is assigned to the XPPageSelector.Collection property.

XPPageSelector(IContainer)

Initializes a new instance of the XPPageSelector class and adds it to a form’s container.

public XPPageSelector(IContainer container)

Parameters

container IContainer

An IContainer object, which is the owner container of the created XPPageSelector instance.

Properties

Collection

Gets or sets the collection of persistent objects that the page selector is bound to.

public XPBaseCollection Collection { get; set; }

Property Value

XPBaseCollection

An XPBaseCollection descendant which represents the collection of persistent objects.

CurrentPage

Gets or sets the current page in the pageable collection.

[Browsable(false)]
public int CurrentPage { get; set; }

Property Value

int

An integer value which specifies the index of the current page. If less than zero or exceeds the number of pages, an ArgumentOutOfRangeException exception is raised.

PageCount

Gets the number of pages.

[Browsable(false)]
public int PageCount { get; }

Property Value

int

An integers value which specifies the number of pages acquired when the source collection is paginated.

PageSize

Gets or sets the maximum number of persistent objects that can be contained in a single page.

public int PageSize { get; set; }

Property Value

int

An integer value which specifies the maximum number of persistent objects that can be contained in a single page. If less than or equal to 0, an ArgumentOutOfRangeException is raised.