Evaluate Essential Studio for .NET MAUI free.Start building today.
Add Syncfusion .NET MAUI controls to your app.
Use a package manager to add Syncfusion .NET MAUI controls to your application now, or download Syncfusion Studio to browse samples and binaries on your desktop.
Install the MAUI DataGrid Package
Install via nuget package manager
Install-Package Syncfusion.Maui.DataGrid
Register your trial license key
Include your license key in App.xaml.cs before initializing any Syncfusion components.
// Register the Syncfusion license
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("YOUR_LICENSE_KEY");
Register Syncfusion handler
Register the Syncfusion core handler in your MauiProgram.cs file to use Syncfusion controls. Make sure to add the namespace Syncfusion.Maui.Core.Hosting.
builder.ConfigureSyncfusionCore();
Define Model and View Model
Create a data model to represent the entities you want to display in the DataGrid, and a ViewModel to manage the data and business logic.
// Model
public class OrderInfo
{
public int OrderID { get; set; }
public string CustomerName { get; set; } = string.Empty;
public string ShipCity { get; set; } = string.Empty;
}
// ViewModel
using System.Collections.ObjectModel;
public class OrderViewModel
{
public ObservableCollection<OrderInfo> Orders { get; set; }
public OrderViewModel()
{
Orders = new ObservableCollection<OrderInfo>();
PopulateData();
}
private void PopulateData()
{
Orders.Add(new OrderInfo { OrderID = 1001, CustomerName = "Nirav Joshi", ShipCity = "New York" });
Orders.Add(new OrderInfo { OrderID = 1002, CustomerName = "Jenifer Peacock", ShipCity = "California" });
Orders.Add(new OrderInfo { OrderID = 1003, CustomerName = "Michael Shawn", ShipCity = "New Mexico"});
}
}
Import the DataGrid namespace
Add the following namespace in your XAML or C#.
xmlns:syncfusion="clr-namespace:Syncfusion.Maui.DataGrid;assembly=Syncfusion.Maui.DataGrid"
using Syncfusion.Maui.DataGrid;
Add DataGrid component
Add the following XAML or C# code to initialize the DataGrid. In XAML, include the local namespace and set the DataGrid BindingContext to your view model.
<syncfusion:SfDataGrid ItemsSource="{Binding Orders}">
<syncfusion:SfDataGrid.BindingContext>
<local:OrderViewModel />
</syncfusion:SfDataGrid.BindingContext>
</syncfusion:SfDataGrid>SfDataGrid dataGrid = new SfDataGrid(); OrderViewModel orderViewModel = new OrderViewModel(); dataGrid.ItemsSource = orderViewModel.Orders; this.Content = dataGrid;
Search a control. Copy its install command.
Search 245 controls across 14 platforms. Each command comes from that control’s getting-started guide, and every package is checked on NuGet, npm, or pub.dev.
Loading controls…
Evaluate faster with your coding agent.
Paste this prompt into GitHub Copilot, Claude Code, Cursor, or any agent. It sets up Syncfusion for your project from ai.syncfusion.com before it writes code.
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 skills, MCP status, and any required licensing action.
No key needed to install the skills. The MCP servers use the API key that comes with a free account. Agent setup guides
AI assistants
IDEs
Short, task-first walkthroughs.
Need help getting started?
Explore our resources or reach out to our support team for assistance.
Product Updates
Technical Support
AI Solutions
Syncfusion Studio for your desktop.
One small download. Browse every product, download samples and binaries, and set up your IDE and AI assistant.