Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (158).NET Core  (28).NET MAUI  (44)Angular  (65)ASP.NET  (50)ASP.NET Core  (77)ASP.NET MVC  (88)Azure  (32)Blazor  (141)DocIO  (23)Essential JS 2  (80)Essential Studio  (171)File Formats  (26)Flutter  (121)JavaScript  (170)Microsoft  (112)PDF  (65)React  (51)Succinctly series  (126)Syncfusion  (570)TypeScript  (30)Uno Platform  (3)UWP  (4)Vue  (35)Webinar  (30)Windows Forms  (58)WinUI  (43)WPF  (134)Xamarin  (149)XlsIO  (25)Other CategoriesBarcode  (5)BI  (29)Bold BI  (4)Build conference  (6)Business intelligence  (53)Button  (4)C#  (117)Chart  (56)Cloud  (11)Company  (445)Dashboard  (7)Data Science  (3)Data Validation  (6)DataGrid  (54)Development  (351)Doc  (7)DockingManager  (1)eBook  (95)Enterprise  (22)Entity Framework  (5)Essential Tools  (14)Excel  (23)Extensions  (17)File Manager  (4)Gantt  (11)Gauge  (9)Git  (4)Grid  (27)HTML  (9)Installer  (2)Knockout  (2)Language  (1)LINQPad  (1)Linux  (2)M-Commerce  (1)Metro Studio  (11)Mobile  (289)Mobile MVC  (9)OLAP server  (1)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (29)Performance  (9)PHP  (1)PivotGrid  (4)Predictive Analytics  (6)Report Server  (3)Reporting  (10)Reporting / Back Office  (11)Rich Text Editor  (7)Road Map  (10)Scheduler  (36)SfDataGrid  (9)Silverlight  (21)Sneak Peek  (21)Solution Services  (2)Spreadsheet  (11)SQL  (8)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (11)Tips and Tricks  (89)UI  (200)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (1)Visual Studio  (23)Visual Studio Code  (14)Web  (323)What's new  (192)Windows 8  (19)Windows App  (2)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
Share on twitter
Share on facebook
Share on linkedin
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.

Related blogs

Tags:

Share this post:

Share on twitter
Share on facebook
Share on linkedin
Popular Now

Be the first to get updates

Subscribe RSS feed
Scroll To Top