Syncfusion.Maui.DataGridExport 35.1.41

Prefix Reserved
dotnet add package Syncfusion.Maui.DataGridExport --version 35.1.41
                    
NuGet\Install-Package Syncfusion.Maui.DataGridExport -Version 35.1.41
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Syncfusion.Maui.DataGridExport" Version="35.1.41" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Syncfusion.Maui.DataGridExport" Version="35.1.41" />
                    
Directory.Packages.props
<PackageReference Include="Syncfusion.Maui.DataGridExport" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Syncfusion.Maui.DataGridExport --version 35.1.41
                    
#r "nuget: Syncfusion.Maui.DataGridExport, 35.1.41"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Syncfusion.Maui.DataGridExport@35.1.41
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Syncfusion.Maui.DataGridExport&version=35.1.41
                    
Install as a Cake Addin
#tool nuget:?package=Syncfusion.Maui.DataGridExport&version=35.1.41
                    
Install as a Cake Tool

Syncfusion .NET MAUI DataGrid Export

The Syncfusion .NET MAUI DataGrid Export package provides export support for the Syncfusion DataGrid control in .NET MAUI applications. It enables developers to export DataGrid content to Excel and PDF file formats while preserving data, cell styles, formatting, and grid structure. Designed to integrate seamlessly with the MAUI DataGrid, this package helps create professional reports, share data efficiently, and maintain a consistent appearance between the displayed grid and exported documents.

Documentation · Getting Started · API Reference · Demos on GitHub · Product Page · Release Notes

.NET MAUI DataGrid Export


Using this package with an AI coding agent

Before generating Syncfusion code, ask your AI coding agent to run the Syncfusion setup using the following prompt:

Set up this project for Syncfusion before generating code. Fetch and follow the official instructions at https://ai.syncfusion.com, then report the detected platform, installed skill pack, MCP status, and any required licensing action.

The setup detects your project’s platform and loads the appropriate Syncfusion skill pack. No Syncfusion account or MCP key is required to install or read Syncfusion agent skills.

Platform reference: https://ai.syncfusion.com/maui/llms.txt

Key features

Export capabilities

  • Export Syncfusion DataGrid content to Excel workbooks.
  • Export Syncfusion DataGrid content to PDF documents.
  • Preserve data, cell styles, formatting, and grid structure during export.
  • Generate professional reports from the same grid data shown in the app.

Integration

  • Integrates seamlessly with the Syncfusion MAUI DataGrid.
  • Maintains a consistent appearance between the on-screen grid and the exported file.
  • Uses the Syncfusion export libraries included with the package.

Supported platforms and target frameworks

Platform Target framework
Android net9.0-android, net10.0-android
iOS net9.0-ios, net10.0-ios
Mac Catalyst net9.0-maccatalyst, net10.0-maccatalyst
Windows net9.0-windows10.0.19041, net10.0-windows10.0.19041

Minimum OS versions follow the .NET MAUI supported platforms.


Installation

.NET CLI

dotnet add package Syncfusion.Maui.DataGridExport

Package Manager Console

Install-Package Syncfusion.Maui.DataGridExport

Getting started

1. Register the Syncfusion core handler

In MauiProgram.cs, call ConfigureSyncfusionCore():

using Syncfusion.Maui.Core.Hosting;

public static class MauiProgram
{
	public static MauiApp CreateMauiApp()
	{
		var builder = MauiApp.CreateBuilder();
		builder
			.UseMauiApp<App>()
			.ConfigureSyncfusionCore();

		return builder.Build();
	}
}

2. Add the export package

Install the package in your project:

dotnet add package Syncfusion.Maui.DataGridExport

3. Export the DataGrid content

Use the Syncfusion DataGrid export APIs to generate Excel or PDF output from your grid data. The following examples show the most common export patterns.

Sample DataGrid view
<StackLayout>
	<Button Text="Export to Excel" Clicked="ExportToExcel_Clicked" />
	<Button Text="Export to PDF" Clicked="ExportToPDF_Clicked" />

	<syncfusion:SfDataGrid x:Name="dataGrid"
						   ItemsSource="{Binding OrderInfoCollection}"
						   AutoGenerateColumnsMode="None"
						   ColumnWidthMode="Auto">
		<syncfusion:SfDataGrid.Columns>
			<syncfusion:DataGridNumericColumn MappingName="OrderID" HeaderText="Order ID" Format="D" />
			<syncfusion:DataGridTextColumn MappingName="CustomerID" HeaderText="Customer ID" />
			<syncfusion:DataGridTextColumn MappingName="Customer" HeaderText="Customer" />
			<syncfusion:DataGridTextColumn MappingName="ShipCountry" HeaderText="Ship Country" />
			<syncfusion:DataGridTextColumn MappingName="ShipCity" HeaderText="Ship City" />
		</syncfusion:SfDataGrid.Columns>
	</syncfusion:SfDataGrid>
</StackLayout>
Export to Excel
private void ExportToExcel_Clicked(object sender, EventArgs e)
{
	var excelExport = new DataGridExcelExportingController();
	var exportOption = new DataGridExcelExportingOption();

	var excelEngine = excelExport.ExportToExcel(this.dataGrid, exportOption);
	var workbook = excelEngine.Excel.Workbooks[0];

	using MemoryStream stream = new();
	workbook.SaveAs(stream);
	workbook.Close();
	excelEngine.Dispose();

	var saveService = new SaveService();
	saveService.SaveAndView("ExportFeature.xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", stream);
}
Export to PDF
private void ExportToPDF_Clicked(object sender, EventArgs e)
{
	var pdfExport = new DataGridPdfExportingController();
	var exportOption = new DataGridPdfExportingOption();

	var pdfDocument = pdfExport.ExportToPdf(this.dataGrid, exportOption);
	using MemoryStream stream = new();
	pdfDocument.Save(stream);
	pdfDocument.Close(true);

	var saveService = new SaveService();
	saveService.SaveAndView("ExportFeature.pdf", "application/pdf", stream);
}
Export to PDF grid layout
private void ExportToPdfGrid_Clicked(object sender, EventArgs e)
{
	var pdfExport = new DataGridPdfExportingController();
	var pdfDocument = new PdfDocument();
	var pdfGrid = pdfExport.ExportToPdfGrid(this.dataGrid, this.dataGrid.View,
		new DataGridPdfExportingOption { CanFitAllColumnsInOnePage = false }, pdfDocument);

	PdfPage page = pdfDocument.Pages.Add();
	pdfGrid.Draw(page, new Syncfusion.Drawing.PointF(10, 10));

	using MemoryStream stream = new();
	pdfDocument.Save(stream);
	pdfDocument.Close(true);

	var saveService = new SaveService();
	saveService.SaveAndView("ExportFeature.pdf", "application/pdf", stream);
}

Note: DataGridTemplateColumn cannot be exported to Excel or PDF. Use standard columns such as DataGridTextColumn and DataGridNumericColumn, or exclude template columns when exporting.

For more details, see the Excel export guide and PDF export guide.


Dependencies

Installing this package also installs the following packages:

  • Syncfusion.Maui.Buttons
  • Syncfusion.Maui.Core
  • Syncfusion.Maui.Data
  • Syncfusion.Maui.DataGrid
  • Syncfusion.Maui.DataPager
  • Syncfusion.Maui.DataSource
  • Syncfusion.Maui.GridCommon
  • Syncfusion.Maui.Inputs
  • Syncfusion.Maui.ListView
  • Syncfusion.Maui.Picker
  • Syncfusion.Maui.Popup
  • Syncfusion.Maui.PullToRefresh
  • Syncfusion.Maui.Sliders
  • Syncfusion.Pdf.NET
  • Syncfusion.XlsIO.NET

License

This is a commercial product and requires a paid license for possession or use. Syncfusion's licensed software, including this component, is subject to the terms and conditions of Syncfusion's EULA. You can purchase a license here or start a free 30-day trial here.

Register your license key

Register the key in App.xaml.cs before the app is built:

Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("YOUR_LICENSE_KEY");

For details, see Licensing overview.


Support and feedback


About Syncfusion

Founded in 2001 and headquartered in Research Triangle Park, N.C., Syncfusion has more than 26,000+ customers and more than 1 million users, including large financial institutions, Fortune 500 companies, and global IT consultancies.

Today, we provide 1600+ components and frameworks for web (Blazor, ASP.NET Core, ASP.NET MVC, ASP.NET WebForms, JavaScript, Angular, React, Vue, and Flutter), mobile (.NET MAUI, Xamarin, Flutter, UWP, and JavaScript), and desktop development (WinForms, WPF, WinUI, Flutter and UWP). We provide ready-to-deploy enterprise software for dashboards, reports, data integration, and big data processing. Many customers have saved millions in licensing fees by deploying our software.

sales@syncfusion.com | www.syncfusion.com | Toll Free: 1-888-9 DOTNET

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-android35.0 is compatible.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-ios18.0 is compatible.  net9.0-maccatalyst was computed.  net9.0-maccatalyst18.0 is compatible.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net9.0-windows10.0.19041 is compatible.  net10.0 is compatible.  net10.0-android was computed.  net10.0-android36.0 is compatible.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-ios26.0 is compatible.  net10.0-maccatalyst was computed.  net10.0-maccatalyst26.0 is compatible.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed.  net10.0-windows10.0.19041 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Syncfusion.Maui.DataGridExport:

Repository Stars
syncfusion/maui-demos
This repository contains the Syncfusion .NET MAUI control’s samples and the guide to use them
Version Downloads Last Updated
35.1.41 72 10/20/2026
35.1.40 99 10/13/2026
35.1.39 217 10/6/2026
35.1.37 223 9/29/2026
34.2.9 343 9/21/2026
34.2.8 146 9/14/2026
34.2.7 197 9/8/2026
34.2.6 148 8/31/2026
34.2.5 385 8/25/2026
34.2.4 317 8/17/2026
34.2.3 162 8/11/2026
34.2.2 180 8/5/2026
34.1.33 1,155 7/27/2026
34.1.32 200 7/21/2026
34.1.31 293 7/14/2026
34.1.30 272 7/9/2026
34.1.29 484 7/6/2026
33.2.15 456 6/23/2026
33.2.13 201 6/16/2026
33.2.12 202 6/9/2026
Loading failed