Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The .NET MAUI DataGrid control is used to display and manipulate data in a tabular view. Its rich feature set includes different column types, sorting, autofitting for columns and rows, and styling for all elements.


.NET MAUI DataGrid Code Example

Easily get started with the .NET MAUI DataGrid using a few simple lines of XAML code example as demonstrated below. Also, explore our .NET MAUI DataGrid Example that shows you how to render and configure the .NET MAUI DataGrid.

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  4. xmlns:syncfusion="clr-namespace:Syncfusion.Maui.DataGrid;assembly=Syncfusion.Maui.DataGrid"
  5. xmlns:local="clr-namespace:GettingStarted"
  6. x:Class="GettingStarted.MainPage">
  7. <ContentPage.BindingContext>
  8. <local:OrderInfoRepository x:Name="viewModel" />
  9. </ContentPage.BindingContext>
  10. <ContentPage.Content>
  11. <syncfusion:SfDataGrid x:Name="dataGrid"
  12. ItemsSource="{Binding OrderInfoCollection}">
  13. </syncfusion:SfDataGrid>
  14. </ContentPage.Content>
  15. </ContentPage>

High performance

The .NET MAUI DataGrid control was built from the ground up for the best possible performance, even when loading large amounts of data.

.NET MAUI DataGrid high performance.


.NET MAUI DataGrid responsiveness.

Responsive DataGrid

Responsive features allow the DataGrid layout to be viewed on different devices. It is also possible to hide specific columns and customize the width of all the columns or individual columns with built-in column sizing options.


Data binding

Bind data seamlessly from various local and remote data sources, such as JSON, OData, WCF, and RESTful web services.

.NET MAUI DataGrid data binding.


.NET MAUI DataGrid selection.

Selection

  • Select one or more rows with built-in selection modes.
  • Navigate among cells and rows with keyboard navigation in the Windows platform.
  • Customize the background and text color for selected rows.

Editing

Experience easy editing with our in-place editing feature! With a seamless interface and a wide range of built-in column types, including text, numeric, combo box, and date-picker editors, users will enjoy unparalleled control over their data. Easily commit or roll back changes with just a few clicks, ensuring the smoothest editing experience possible.


Data shaping and manipulation

.NET MAUI DataGrid shows the sorted data.

Sorting

Sort one or more columns in ascending or descending order. Perform tri-state sorting and display sort numbers to indicate the sort order.

.NET MAUI DataGrid shows the grouped data.

Grouping

Programmatically group data by one or more columns using flexible templates. The groups can be expanded or collapsed based on user preference. Additionally, the grouping logic can be customized to apply specific rules for data grouping.

Filtering in .NET MAUI DataGrid.

Filtering

Programmatically filter the rows by setting a predicate to the view.

Summaries in .NET MAUI DataGrid.

Summaries

Display a row containing summary data for the columns with aggregate types sum, minimum, maximum, average, and count. The following are the different categories of summary:

  • Total or table
  • Group
  • Summary in group caption or group header
  • Custom

Real time updates in .NET MAUI DataGrid.

Real-time updates

In high-pressure situations, maintaining up-to-date information is critical. The DataGrid supports real-time updates to cells, enhancing efficiency and responsiveness.


Loading more items

  • Load a subset of data into a bound collection at runtime.
  • Customize the load-more-items option and set its position at the top or bottom of the MAUI DataGrid.
  • Automatically load data in chunks when reaching the end of the list.

.NET MAUI DataGrid load more items.


.NET MAUI DataGrid pull to refresh.

Pull to refresh

  • Refresh the data source dynamically during a pull-to-refresh action.
  • Enhance the user experience by customizing the pull-to-refresh view with sliding and pushing transition modes.

Row and column customization

.NET MAUI DataGrid shows the different types of columns.

Column types

  • Users can load different types of data using the built-in column types text, numeric, date, checkbox, and image for better data visualization.
  • Load custom or multiple views in the cells to display using templated columns.

Freeze panes in .NET MAUI DataGrid.

Freeze panes

Freeze rows and columns at the top and bottom of the view, similar to Excel. Horizontal and vertical scrolling can be performed, except on frozen columns and rows.

Stacked headers in .NET MAUI DataGrid.

Stacked headers

Group the columns under a common header. Users can add multiple rows and define multicolumn headers in the stacked header rows.

.NET MAUI DataGrid shows rows in auto fit.

Row height

Adjust (auto fit) the row height based on the content of any column or certain columns to enhance the readability of the content. It is also possible to set the row height conditionally.

Column sizing in .NET MAUI DataGrid.

Column sizing

  • The column width can be adjusted to fit the contents of its cells.
  • All the columns can be adjusted to fit within the viewport.

Unbound view

Unbound column

Unbound column in .NET MAUI DataGrid.

Display additional columns that are not bound to data objects from the underlying data source. The control supports applying arithmetic/logical expressions on cell values of bound columns to populate the cells of unbound columns.

Unbound row

Unbound row in .NET MAUI DataGrid.

Display rows at the top and bottom of the grid with data that is not bound to the data source.


Interactive features

Swiping in .NET MAUI DataGrid.

Swiping

Associate swipe buttons with custom actions. Swipe buttons are displayed by swiping left or right over a data row. Create swipe templates and associate the views in them with custom actions.

Drag and drop

Reorder rows and columns by simply dragging and dropping them into place.

Column resizing in .NET MAUI DataGrid.

Resizing

Resize a column on touch-up. Restrict a column with a minimum width to avoid hiding it and a maximum width to restrict resizing beyond the limit.


Appearance

Styling in .NET MAUI DataGrid.

Styling

  • Customize the style of each and every element in the MAUI DataGrid to display visually appealing data.
  • Apply a background color to alternating rows for better readability.
  • Customize the text styles of rows for an elegant look and feel.
  • Customize vertical, horizontal, or both grid line borders. Customize the color and thickness of the grid lines, as well.

Conditional styling in .NET MAUI DataGrid.

Conditional styling

  • Customize cell and row appearances conditionally based on the data.
  • Customize the styles and formatting of data in the rows.

Exporting

Excel exporting in .NET MAUI DataGrid.

Excel export

  • The .NET MAUI DataGrid allows exporting data to Excel file format.
  • It offers a range of appearance customization options.
  • Users can exclude specific columns and headers from the exported file, set custom row heights and column widths, and much more. To enhance customization capabilities, utilize the Syncfusion .NET MAUI Excel Library to further modify the exported Excel file.

PDF exporting in .NET MAUI DataGrid.

PDF exporting

  • The .NET MAUI DataGrid allows the export of data to PDF file format, providing a wide range of appearance customization options.
  • Users can exclude specific columns and headers from the exported PDF, set custom row heights and column widths, and more.
  • Users can show or hide column headers on each page of the exported PDF. Moreover, the DataGrid enables the display of additional content at the top (header) or bottom (footer) of the page during PDF export. To view the exported PDF document, users can utilize the Syncfusion .NET MAUI PDF Viewer.

.NET MAUI DataGrid paging.

Paging

  • Manipulate data using the DataPager control to view records on multiple pages.
  • Customize visually appealing styles based on device and application requirements.
  • Load data to new pages on demand with options to maintain and reset the cache.

Struggling to decide on the right product?

Our comprehensive competitor comparison of .NET MAUI controls will guide you to the perfect choice.

tick-mark 60+ UI controls
tick-mark 200+ interactive .NET MAUI demos
tick-mark 1.0M+ downloads

Frequently Asked Questions

The Syncfusion .NET MAUI DataGrid control supports the following features:

  • Instantly load large amounts of data.
  • Apply styles to every element in a data grid easily.
  • Select one or more rows with built-in selection modes.
  • Sort one or more columns in ascending or descending order.
  • Update cells in real time, enhancing efficiency and responsiveness.
  • Load and display custom or multiple views in cells using column templates.
  • Group data by one or more columns using flexible templates.
  • Appreciate high performance and handle large data sets efficiently.
  • Display a row containing summary data for the columns with aggregate types such as sum, minimum, maximum, average, and count.
  • Enjoy a simple configuration and APIs.
  • Utilize a touch-friendly UI.
  • Take advantage of extensive demos, documentation, and videos to let you get started quickly with the .NET MAUI DataGrid.

You can find our .NET MAUI DataGrid demo, which demonstrates how to render and configure the DataGrid.

The .NET MAUI DataGrid control displays and manipulates data in a tabular view. Its rich feature set includes different column types, editing, sorting, grouping, autofitting for columns and rows, and styling for all elements.

Yes, Syncfusion offers a 30-day free trial. After the trial, licensing is required for continued use.

Use the SfDataPager control and bind it to the DataGrid’s ItemsSource. Customize the page size using the PageSize property.

No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.

A good place to start would be our comprehensive getting started documentation.

The .NET MAUI DataGrid Control is bound to an external data source to display data in a tabular format. It supports data sources such as List, IEnumerable and more. The SfDataGrid. ItemsSource property helps bind this control with a collection of objects.

  1. xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:GettingStarted" xmlns:syncfusion="clr-namespace:Syncfusion.Maui.DataGrid;assembly=Syncfusion.Maui.DataGrid" x:Class="GettingStarted.MainPage"> x:Name="sfDataGrid" ItemsSource="{Binding OrderInfoCollection}" />

SfDataGrid has a built-in functionality to sort one or more columns using the SortingMode property. When sorting is enabled, the data grid automatically reorders the data based on the chosen sort criteria. You can sort data by tapping on the column header. After sorting, a sort icon appears in the respective column header to indicate the direction of the sort.

Yes, the grid adjusts dynamically to different screen sizes and orientations for a seamless experience.

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion® reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion® is proud to hold the following industry awards.

Up arrow icon
Chat with us