Skip to main content

DxPager.ActivePageIndex Property

Specifies a selected page’s zero-based index.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor


public int ActivePageIndex { get; set; }

Property Value

Type Description

A zero-based integer value that specifies the active page’s index.


Use the ActivePageIndex property to switch pages in code. The PageCount property returns the total number of pages in the pager.

Pager Overview

<DxPager PageCount="@PageCount"
         @bind-ActivePageIndex="@ActivePageIndex" > 

@code { 
    int PageCount = 5; 
    int ActivePageIndex = 1;

The ActivePageIndexChanged event is raised when the active page is changed.

Run Demo: Pager

See Also