The Xamarin.Forms datagrid control is a high-performance grid component that helps to 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 also supports exporting the entire DataGrid or selected items to Excel and PDF file formats.
The Xamarin.Forms DataGrid control is 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.
Data binding works out of the box for the most popular data sources. The Xamarin.Forms DataGrid control automatically generates columns for properties in the data model.
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. Apply custom grouping logic to group data.
Calculate and display sum, min, max, average, count, and custom aggregates for the entire grid or individual groups to show summarized information of all the data or just a section.
Easily filter and search records by setting a predicate to the view.
Handle high frequency updates even under the most demanding scenarios where data is sorted and grouped in real time.
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, like in Excel.
In-place editing support with built-in column types provides the best editing experience. There’s built-in support for text, numeric, picker, and date picker editors with support to commit or roll back changes.
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 columns for additional end user flexibility.
Reorder rows for additional end user flexibility.
Resize a column either on the move or on touch-up to read large data with flexibility. Restrict a column with minimum width to avoid hiding the column and maximum width to restrict resizing beyond the limit.
Create records on-demand by automatically enabling data virtualization for efficient processing of data.
Export data to Excel and PDF with a variety of appearance customization options, such as exclude specific columns, exclude headers, set custom row heights, and set custom column widths. A grid can also be exported to a particular page or position in a PDF document.
Scroll the data in horizontal, vertical, or both directions with various built-in scrolling modes: