Introducing the New .NET MAUI DataGrid Control | Syncfusion Blogs
Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (175).NET Core  (29).NET MAUI  (208)Angular  (109)ASP.NET  (51)ASP.NET Core  (82)ASP.NET MVC  (89)Azure  (41)Black Friday Deal  (1)Blazor  (220)BoldSign  (14)DocIO  (24)Essential JS 2  (107)Essential Studio  (200)File Formats  (66)Flutter  (133)JavaScript  (221)Microsoft  (119)PDF  (81)Python  (1)React  (101)Streamlit  (1)Succinctly series  (131)Syncfusion  (919)TypeScript  (33)Uno Platform  (3)UWP  (4)Vue  (45)Webinar  (51)Windows Forms  (61)WinUI  (68)WPF  (159)Xamarin  (161)XlsIO  (36)Other CategoriesBarcode  (5)BI  (29)Bold BI  (8)Bold Reports  (2)Build conference  (8)Business intelligence  (55)Button  (4)C#  (150)Chart  (132)Cloud  (15)Company  (443)Dashboard  (8)Data Science  (3)Data Validation  (8)DataGrid  (63)Development  (633)Doc  (8)DockingManager  (1)eBook  (99)Enterprise  (22)Entity Framework  (5)Essential Tools  (14)Excel  (40)Extensions  (22)File Manager  (7)Gantt  (18)Gauge  (12)Git  (5)Grid  (31)HTML  (13)Installer  (2)Knockout  (2)Language  (1)LINQPad  (1)Linux  (2)M-Commerce  (1)Metro Studio  (11)Mobile  (508)Mobile MVC  (9)OLAP server  (1)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (43)Performance  (12)PHP  (2)PivotGrid  (4)Predictive Analytics  (6)Report Server  (3)Reporting  (10)Reporting / Back Office  (11)Rich Text Editor  (12)Road Map  (12)Scheduler  (52)Security  (3)SfDataGrid  (9)Silverlight  (21)Sneak Peek  (31)Solution Services  (4)Spreadsheet  (11)SQL  (11)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (12)Tips and Tricks  (112)UI  (387)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (2)Visual Studio  (31)Visual Studio Code  (19)Web  (597)What's new  (333)Windows 8  (19)Windows App  (2)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
Introducing the New .NET MAUI DataGrid Control

Introducing the New .NET MAUI DataGrid Control

We are thrilled to announce the availability of the new .NET MAUI DataGrid control in our Syncfusion Essential Studio 2022 Volume 2 release. We have provided the DataGrid support for the following platforms,

  • Android
  • iOS
  • WinUI
  • Mac Catalyst

Key features

The .NET MAUI DataGrid control supports the following features in this 2022 Volume 2 release,

Data binding

Users can bind any IEnumerable-type data sources like lists and ObservableCollection. Data table binding is also supported.

Column types

You can show different data types in different types of columns. The following column types are supported:

  • Numeric
  • Text
  • Date
  • Checkbox
  • Image
  • Template (To load controls in a column through the template support.)
Different Column Types Supported in .NET MAUI DataGrid
Different Column Types Supported in .NET MAUI DataGrid Control

Sorting

Users can interactively sort one or more columns in ascending or descending order. The .NET MAUI DataGrid also supports tri-state sorting i.e., ascending, descending, and unsorted order. You can show numbers next to the sort icon to indicate the order in which the sorting was performed for multiple columns.

Refer to the following image.

Sorting Multiple Columns in .NET MAUI DataGrid
Sorting Multiple Columns in .NET MAUI DataGrid Control

Filtering

Users can perform filtering actions programmatically by providing the appropriate conditions to filter the required rows.

public bool FilterRecords(object record)
{
   string filterText = "ALFKI";
   var item = record as OrderInfo;
   if (item != null)
   {
     if (item.Customer.Equals(filterText))
     return true;
   }
   return false;
}
 
private void Button_Clicked(object sender, EventArgs e)
{
   dataGrid.View.Filter = FilterRecords;
   dataGrid.View.RefreshFilter();
}

Column sizing

You can set the required column width for each column. Also, you can set the minimum or maximum widths for the columns.

The .NET MAUI DataGrid supports different column width modes such as auto-sizing the columns based on the cell content and filling all the columns within viewport.

Column Sizing Feature in .NET MAUI DataGrid
Column Sizing Feature in .NET MAUI DataGrid Control

Auto row height

The DataGrid control allows users to set separate heights for the header row and data rows. You can set the height for any specific data row. For better readability of the content, you can auto-fit the height for rows.

Auto Row Height Support in .NET MAUI DataGrid
Auto Row Height Support in .NET MAUI DataGrid Control

Selection

Select one or more rows in DataGrid control. The following selection modes are supported:

  • Single – Only one row can be selected.
  • Single deselect – Only one row can be selected and it can be deselected when we select it again.
  • Multiple – More than one row can be selected.

The keyboard navigation helps users to easily navigate between cells and rows without needing a mouse. This support is available only for the Windows platform.

Selecting Multiple Rows in .NET MAUI DataGrid
Selecting Multiple Rows in .NET MAUI DataGrid Control

Styling

Also, you can customize the appearance of each element in the .NET MAUI DataGrid control. You can easily set the style conditionally for the grid elements, too.

The following styles are supported for cell customization:

  • Font and its attributes
  • Text color
  • Background
Custom Styling Support in .NET MAUI DataGrid
Custom Styling Support in .NET MAUI DataGrid Control

Conclusion

Thanks for reading! We have provided the basic features for the .NET MAUI DataGrid in this 2022 Volume 2 release. We will add more features like in our Xamarin DataGrid in near future. Please take the time to get started with .NET MAUI DataGrid and leave your feedback in the comments section given below!

Refer to our Release Notes and What’s New pages to check out all the new updates in the 2022 Volume 2 release.

You can also reach us through our support forums,  support portal, or feedback portal.

Test Flight
App Center Badge
Google Play Store Badge
Microsoft Badge
Github Store Badge

Related blogs

Tags:

Share this post:

Popular Now

Be the first to get updates

Subscribe RSS feed

Be the first to get updates

Subscribe RSS feed