TL;DR: The Syncfusion® .NET MAUI Pager makes it easy to add pagination to DataGrid, ListView, CollectionView, and TreeGrid controls. This guide demonstrates how to set up the Pager, connect it to a DataGrid, customize page navigation, and load data on demand.
Displaying hundreds or thousands of records in a single list can make data-heavy screens difficult to navigate. Users may need to scroll through long lists to find specific records, while the application has to manage a large collection of data.
Pagination provides a simpler way to browse large datasets by displaying a limited number of records at a time. Users can move between pages or jump directly to a specific page.
The Syncfusion® .NET MAUI Pager, introduced in Volume 3 2026, provides ready-made navigation controls for this purpose. It works with DataGrid, ListView, CollectionView, and TreeGrid, allowing you to add pagination without building your own navigation interface.
The DataPager supports client-side and on-demand paging, customizable navigation buttons, and programmatic page navigation.
In this blog, we’ll explore how to integrate the DataPager with a DataGrid and use its key features in a .NET MAUI application.
Key features of the .NET MAUI Pager
The Syncfusion DataPager provides the following capabilities:
- Page navigation: Move between the first, previous, next, and last pages, or select a page number directly.
- Multiple data controls: Supports DataGrid, ListView, CollectionView, and TreeGrid through
PagedSource. - On-demand paging: Load records from a service or database when users navigate to a page.
- Flexible navigation: Choose which navigation buttons to display and use ellipsis for large page ranges.
- Customization: Configure button shapes, sizes, spacing, colors, and orientation.
- Programmatic control: Navigate between pages using commands and methods.
- Events: Respond to page changes and cancel navigation when necessary.
Let’s see how to use these features in an application.
Get started with the .NET MAUI Pager
Before building the application, ensure you have:
- .NET 10 or later with the .NET MAUI workload installed.
- Visual Studio with .NET MAUI support or Visual Studio Code with the .NET MAUI extension.
- Syncfusion.Maui.DataPager and Syncfusion.Maui.DataGrid NuGet packages, version
35.1.37or later. - A valid Syncfusion license key.
If the .NET MAUI workload is not installed, run:
dotnet workload install maui
Install the NuGet packages
Create a .NET MAUI project and install the required packages:
dotnet add package Syncfusion.Maui.DataPager
dotnet add package Syncfusion.Maui.DataGrid
The DataPager package provides pagination functionality. The DataGrid package is required for the example in this blog.
Register the license and configure Syncfusion
Open MauiProgram.cs and register your Syncfusion license key before building the application. Also, configure the Syncfusion core:
using Syncfusion.Licensing;
using Syncfusion.Maui.Core.Hosting;
public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
SyncfusionLicenseProvider.RegisterLicense("YOUR-LICENSE-KEY");
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.ConfigureSyncfusionCore();
return builder.Build();
}
}
Keep your license key out of source control. You can store it in an environment variable or a secrets file instead of hard-coding it into a committed file.
Add pagination to a DataGrid
Let’s create an order-management screen that displays 1,000 sample orders in a DataGrid, with 20 records on each page.
Create the data source
First, create an OrderInfo model and an OrdersViewModel class in a file named OrdersViewModel.cs.
using System.Collections.ObjectModel;
namespace PagerDemo;
public class OrderInfo
{
public string OrderID { get; set; }
public string CustomerID { get; set; }
public string Customer { get; set; }
public string ShipCity { get; set; }
public string ShipCountry { get; set; }
public OrderInfo(string orderId, string customerId, string customer,
string shipCity, string shipCountry)
{
OrderID = orderId;
CustomerID = customerId;
Customer = customer;
ShipCity = shipCity;
ShipCountry = shipCountry;
}
}
public class OrdersViewModel
{
public ObservableCollection<OrderInfo> OrderInfoCollection { get; }
private static readonly string[] CustomerNames =
{ "Maria Anders", "Ana Trujillo", "Antonio Moreno", "Thomas Hardy" };
private static readonly string[] ShipCities =
{ "Berlin", "Munich", "Hamburg", "Paris", "Lyon", "Marseille" };
private static readonly string[] ShipCountries =
{ "Germany", "France", "United Kingdom" };
public OrdersViewModel()
{
OrderInfoCollection = new ObservableCollection<OrderInfo>();
for (int i = 1; i <= 1000; i++)
{
OrderInfoCollection.Add(new OrderInfo(
(10000 + i).ToString(),
$"CUST{i:0000}",
CustomerNames[(i - 1) % CustomerNames.Length],
ShipCities[(i - 1) % ShipCities.Length],
ShipCountries[(i - 1) % ShipCountries.Length]));
}
}
}
The OrderInfoCollection contains all 1,000 sample records. We’ll bind this collection to the DataPager.
Add DataGrid and DataPager
Open MainPage.xaml. Set its BindingContext to the OrdersViewModel, then add the DataGrid and DataPager:
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:PagerDemo"
xmlns:syncfusion="clr-namespace:Syncfusion.Maui.DataGrid;assembly=Syncfusion.Maui.DataGrid"
xmlns:sfpager="clr-namespace:Syncfusion.Maui.DataPager;assembly=Syncfusion.Maui.DataPager"
x:Class="PagerDemo.MainPage">
<ContentPage.BindingContext>
<local:OrdersViewModel />
</ContentPage.BindingContext>
<Grid RowDefinitions="*,Auto">
<syncfusion:SfDataGrid
Grid.Row="0"
ItemsSource="{Binding Source={x:Reference dataPager}, Path=PagedSource}">
<syncfusion:SfDataGrid.Columns>
<syncfusion:DataGridTextColumn MappingName="OrderID" HeaderText="Order ID" />
<syncfusion:DataGridTextColumn MappingName="CustomerID" HeaderText="Customer ID" />
<syncfusion:DataGridTextColumn MappingName="Customer" HeaderText="Customer" />
<syncfusion:DataGridTextColumn MappingName="ShipCity" HeaderText="Ship City" />
<syncfusion:DataGridTextColumn MappingName="ShipCountry" HeaderText="Ship Country" />
</syncfusion:SfDataGrid.Columns>
</syncfusion:SfDataGrid>
<sfpager:SfDataPager
x:Name="dataPager"
Grid.Row="1"
HorizontalOptions="Fill"
VerticalOptions="Center"
HeightRequest="50"
ButtonSize="36"
ButtonSpacing="8"
ButtonFontSize="14"
PageSize="20"
NumericButtonCount="5"
Source="{Binding OrderInfoCollection}" />
</Grid>
</ContentPage>
Here is how the two controls work together:
- Source connects the DataPager to the complete order collection.
PageSize="20"displays 20 records on each page.NumericButtonCount="5"displays five page numbers at a time.PagedSourceprovides the records for the currently selected page to the DataGrid.
The DataPager handles page navigation, while the DataGrid displays the corresponding records.
Since the collection contains 1,000 records and each page displays 20, the Pager automatically calculates 50 pages.

What you’ll see: A DataGrid displaying 20 orders at a time, with navigation controls underneath to browse all 50 pages.
Use the Pager with other data controls
The DataPager isn’t limited to the DataGrid. You can also connect it to ListView, CollectionView, and TreeGrid.
The approach is similar: bind the Pager’s Source to your collection and bind the data control’s ItemsSource to the Pager’s PagedSource.
For example, with a CollectionView:
<CollectionView
ItemsSource="{Binding Source={x:Reference dataPager}, Path=PagedSource}" />
You can use the same binding approach with ListView and TreeGrid. This allows you to reuse the Pager across different data presentation controls.
Customize page navigation
The DataPager provides options to control which navigation buttons appear and how users move between pages.
Choose navigation buttons
Use the DisplayMode property to select the buttons you want to display.
| DisplayMode | Buttons displayed |
|---|---|
| FirstLastPreviousNextNumeric | First, Last, Previous, Next, and numeric buttons |
| PreviousNextNumeric | Previous, Next, and numeric buttons |
| FirstLastNumeric | First, Last, and numeric buttons |
| FirstLastPreviousNext | First, Last, Previous, and Next |
| Numeric | Numeric buttons only |
| None | No navigation buttons |
For a compact layout on smaller screens, you can display only the previous, next, and numeric buttons:
<sfpager:SfDataPager
DisplayMode="PreviousNextNumeric"
PageSize="20"
Source="{Binding OrderInfoCollection}" />
Handle large page ranges with ellipsis
When an application has many pages, displaying every page number can make the Pager difficult to use.
The AutoEllipsisMode property helps manage long page ranges by displaying an ellipsis that users can select to move through additional page numbers.
It supports None, Before, After, and Both modes.
<sfpager:SfDataPager
AutoEllipsisMode="Both"
PageSize="25"
Source="{Binding OrderInfoCollection}" />
You can also customize the ellipsis label using AutoEllipsisText.
Customize the appearance
The DataPager provides properties to adjust its layout and navigation buttons.
| Property | Purpose |
|---|---|
| ButtonShape | Sets buttons to circular or rectangular shapes. |
| ButtonSize | Controls button size. |
| ButtonSpacing | Sets the spacing between buttons. |
| ButtonFontSize | Adjusts button text size. |
| ButtonCornerRadius | Controls button corner rounding. |
| Orientation | Arranges the Pager horizontally or vertically. |
To customize button colors, use DataPagerStyle through the DefaultStyle property:
<sfpager:SfDataPager
ButtonShape="Rectangle"
ButtonCornerRadius="6">
<sfpager:SfDataPager.DefaultStyle>
<sfpager:DataPagerStyle
NumericButtonSelectionBackgroundColor="#0057FF"
NumericButtonSelectionTextColor="White"
NumericButtonTextColor="#1C1B1F"
NavigationButtonIconColor="#49454F"
NavigationButtonDisableIconColor="#9E9E9E" />
</sfpager:SfDataPager.DefaultStyle>
</sfpager:SfDataPager>
Choose colors with sufficient contrast so users can easily identify the selected page and distinguish disabled navigation buttons.
Implement on-demand paging
In the previous example, the application loads all 1,000 records into memory, even though the DataGrid displays only 20 at a time.
For larger datasets or data retrieved from remote services, loading every record may not be practical. On-demand paging addresses this by requesting records only when a user navigates to a page.
To enable it, set UseOnDemandPaging to True, specify the total number of pages using PageCount, and handle the OnDemandLoading event.
<sfpager:SfDataPager
x:Name="dataPager"
UseOnDemandPaging="True"
PageSize="20"
PageCount="50"
OnDemandLoading="OnDemandLoading" />
Handle the loading event in the page’s code-behind:
private void OnDemandLoading(object? sender, OnDemandLoadingEventArgs e)
{
var items = orderService.GetOrders(e.StartIndex, e.PageSize);
dataPager.LoadDynamicItems(e.StartIndex, items);
}
Here:
StartIndexidentifies the starting position of the requested records.PageSizespecifies how many records to retrieve.LoadDynamicItems()supplies the requested records to the Pager.
The orderService represents your application’s own data service. It is responsible for retrieving records from a database or remote API.
For example, a service can retrieve the requested range from a collection:
public class OrderService
{
private readonly List<OrderInfo> all = GetAllOrders();
public int TotalCount => all.Count;
public IEnumerable<OrderInfo> GetOrders(int startIndex, int count)
{
return all.Skip(startIndex).Take(count);
}
private static List<OrderInfo> GetAllOrders()
{
// Load or generate the sample order records.
return new List<OrderInfo>();
}
}
Set PageCount using the total number of records and the configured page size:
dataPager.PageCount = (int)Math.Ceiling(
orderService.TotalCount / (double)dataPager.PageSize);
Update the page count when the total number of records changes, such as after applying a filter.
When should you use each approach?
- Client-side paging: Suitable when the complete dataset is manageable and can be loaded into the application.
- On-demand paging: Suitable for large datasets or remote data sources where retrieving all records at once is unnecessary.
Note that on-demand paging requires your application to implement the data retrieval logic. The Pager manages page navigation and loading requests, while your service retrieves the actual records.
Handle page navigation programmatically
You can also control page navigation through events, commands, and methods.
Respond to page changes
The DataPager provides two events:
PageChanging: Occurs before navigation. You can cancel the operation when necessary.PageChanged: Occurs after navigation is completed.
For example, use PageChanging to prevent users from leaving a page while they have unsaved changes:
dataPager.PageChanging += (s, e) =>
{
if (hasUnsavedChanges)
e.Cancel = true;
};
dataPager.PageChanged += (s, e) =>
{
statusLabel.Text =
$"Moved from page {e.OldPageIndex + 1} to {e.NewPageIndex + 1}";
};
The page index is zero-based, so add one when displaying page numbers to users.
Navigate using commands and methods
For MVVM-based applications, the DataPager provides commands such as:
NavigateToFirstPageCommandNavigateToPreviousPageCommandNavigateToNextPageCommandNavigateToLastPageCommandNavigateToPageCommand
You can also use these methods in code-behind:
dataPager.MoveToFirstPage();dataPager.MoveToPreviousPage();dataPager.MoveToNextPage();dataPager.MoveToLastPage();dataPager.MoveToPage(2);
The MoveToPage(2) example navigates to the third page because page indexes start at zero.
Add pagination, data grids, charts, schedulers, and more to your apps with Syncfusion .NET MAUI controls, with built-in theming, data binding, and consistent behavior across Android, iOS, Windows, and macOS.
Start Your Free TrialConclusion
The Syncfusion® .NET MAUI Pager provides a straightforward way to add pagination to DataGrid, ListView, CollectionView, and TreeGrid controls. You can use client-side paging for manageable collections or on-demand paging for large and remote datasets.
With customizable navigation buttons, styling options, events, and programmatic navigation, the Pager gives developers flexibility when building data-heavy .NET MAUI applications.
The Pager is available in Essential Studio 2026 Volume 3. Existing customers can get it from the License and Downloads page, while new users can explore it with a 30-day free trial.
Frequently asked questions
Does the DataPager automatically calculate the total number of pages?
Yes. When using client-side paging, the DataPager calculates the page count based on the number of records in the source collection and the configured PageSize.
Does changing the PageSize affect the total number of pages?
Yes. Changing the PageSize changes the number of records displayed per page and recalculates the total number of pages accordingly.
Can I update the data displayed by the DataPager after applying a filter?
Yes. Update the source collection with the filtered records. When using on-demand paging, also update PageCount to reflect the filtered record count.
Does the DataPager retrieve data from a database automatically?
No. The DataPager handles pagination and raises loading requests. Your application must implement the data retrieval logic through a service, API, or database query.







