The Xamarin.Forms DataGrid control is a high-performance grid component that helps to efficiently display and manipulate large amounts of data in a tabular format. Its rich feature set includes functionalities like data binding, sorting, grouping, editing, filtering, swiping, dragging, resizing, loading more items, pull to refresh, and more. It supports exporting the entire DataGrid or selected items to Excel and PDF file formats. It has also been optimized to handle high-frequency real-time updates.
The Xamarin.Forms DataGrid control was built from the ground up to achieve the best possible performance on the Xamarin platform, even when loading large data sets. Keep your data organized with both basic and advanced operations on cells, rows, and columns. Perform data processing operations like sorting, grouping, summaries, and real-time updates efficiently.
The Xamarin.Forms DataGrid has data-binding support that works out of the box for most popular data sources like List and ObservableCollection. Further, the DataGrid control is completely MVVM compatible. It has built-in commands for handling interactions in MVVM.
Responsive features allow the Xamarin.Forms DataGrid layout to be viewed on various devices. It is also possible to hide specific columns based on devices. Customize the width of all the columns or individual columns with the built-in column sizing options.
In-place editing support with built-in column types provides the best editing experience. There are text, numeric, picker, and date picker editors with support to commit or roll back changes.
Sort data using conventional sorting techniques against one or more columns either by touch or programmatically. Apply custom sorting logic to order data when conventional techniques do not meet the requirement.
Group data by one or more columns programmatically with customizable templates. Groups can be expanded or collapsed. You can also apply custom grouping logic to group data.
Calculate and display sum, min, max, average, count, and custom aggregates for the entire DataGrid or individual groups to show the summarized information of all the data or just a section. Display summaries with different summary types, such as:
Easily filter and search records by setting a predicate to the view.
The Xamarin.Forms DataGrid control can handle high-frequency updates even under the most demanding scenarios in which data is sorted and grouped in real time. The summaries are calculated in an optimized way and the updated summary is displayed in real-time scenarios.
Load different types of data using various built-in column types such as text, numeric, picker, date picker, switch, and image for better data visualization.
Freeze rows and columns at the top and left positions in the view for better readability, similar to Excel. Horizontal and vertical scrolling can be performed except on fixed columns and rows.
Display additional columns that are not bound to data. The control supports an expression to calculate values among columns.
Display rows at the top and bottom of the grid with data that is not bound to the data source.
Associate swipe buttons with custom actions. Swipe buttons are displayed by swiping from left to right or right to left over a data row. Create swipe templates and associate the views in them with custom actions.
Reorder rows and columns for additional end-user flexibility with column and row drag and drop.
Resize a column either on the move or on touch-up to read a lot of data with flexibility. Restrict a column with a minimum width to avoid hiding the column and a maximum width to restrict resizing beyond the limit.
The Xamarin.Forms DataGrid creates records on-demand by enabling data virtualization for the efficient processing of data. Load millions of data instantly with virtualization enabled.
Export data in a Xamarin.Forms DataGrid to Excel file format with a variety of appearance customization options. Exclude specific columns, exclude headers, set custom row heights, set custom column widths, and much more. You can further customize the exported Excel file using the Syncfusion Xamarin Excel library.
Export data in a Xamarin.Forms DataGrid to PDF file format with a variety of appearance customization options. Exclude specific columns, exclude headers, set custom row heights, set custom column widths, and much more. A grid can also be exported to a specified page or position in a PDF document. Show or hide the column headers on each page of the exported PDF. Further, DataGrid provides a way to display additional content at the top (header) or bottom (footer) of the page while exporting to PDF. The exported PDF document can be viewed using the Syncfusion Xamarin PDF Viewer.
Scroll the data with Xamarin.Forms DataGrid in horizontal, vertical, or both directions with various built-in scrolling modes:
All the Xamarin.Forms DataGrid static default strings in the user interface can be localized as needed.
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.