We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

Xamarin DataGrid is a high-performance grid control to display and manipulate large amounts of data efficiently 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. Export the entire DataGrid or selected items to Excel and PDF file formats using this control. It also handles high-frequency real-time updates.


High performance

Xamarin 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 the 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.

XamarinForms DataGrid with high performance


Binding data sources to XamarinForms DataGrid

Data binding

The Xamarin.Forms DataGrid has data-binding support that works out of the box for popular data sources like List, DataTable and ObservableCollection. Further, the control is completely MVVM compatible and has built-in commands for handling interactions in MVVM.


Responsive DataGrid

Responsive features allow the Xamarin.Forms DataGrid layout to be viewed on various devices. It is also possible to hide specific columns based on the device. Customize the width of all the columns or individual columns with built-in column sizing options.

XamarinForms DataGrid with responsive column sizing


Editing

In-place editing with built-in column types provides the best editing experience. There are text, numeric, picker, and date picker editors to commit or roll back changes.


Data shaping and manipulation

Xamarin Forms DataGrid with sorting

Sorting

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.

Xamarin Forms DataGrid with groups

Grouping

Group data by one or more columns programmatically with customizable templates. Groups can be expanded or collapsed. Apply custom grouping logic to group data.

Xamarin Forms DataGrid with summary information

Summaries

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. The types of summary are:

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

Xamarin Forms DataGrid with real-time updates

Live streaming updates

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.

Xamarin Forms DataGrid with filtered data

Filtering

Easily filter and search records by setting a predicate to the view.


Loading more items

  • Load a subset of data to the bound collection at runtime.
  • Customize the load-more-items option and set its position to the top or bottom of the Xamarin.Forms DataGrid.
  • Load data in chunks automatically on reaching the end of a list.

Xamarin Forms DataGrid with load more capabilities


Runtime refreshing of data in Xamarin Forms DataGrid

Pull to refresh

  • Refresh the data source at runtime when performing a pull-to-refresh action.
  • Customize the pull-to-refresh view with sliding and pushing transition modes for a great user experience.

Row and column customizations

Xamarin Forms DataGrid with various column types

Column types

Load different types of data using various built-in column types such as text, numeric, date picker, combobox, picker, switch, and image for better data visualization.

Template customization of Xamarin Forms DataGrid

Column customizations

  • Customize various column settings directly by setting an API either from the XAML or in the code.
  • Load custom or multiple views to the cells to display or edit using templated columns.
  • Load data not bound to the model at runtime. Use expressions to calculate values for multiple columns.

Xamarin Forms DataGrid with autofit capabilities

Autofit capabilities

  • Adjust the row height (auto fit) based on the content of any column or certain columns to enhance readability.
  • Customize the width of all the columns or individual columns in a Xamarin.Forms DataGrid using the built-in column sizing options.
  • Customize the row height conditionally.

Row and column pinning in Xamarin Forms DataGrid

Row and column pinning

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.

Xamarin Forms DataGrid shows stacked headers

Stacked headers (multicolumn headers)

  • Multiple-column headers can be added to show unbound header rows.
  • These headers span across multiple columns. Users can group the columns under the common column headers.

Unbound views

Xamarin Forms DataGrid with Unbound column

Unbound column

Display additional columns that are not bound with data object 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.

Xamarin Forms DataGrid with Unbound rows

Unbound row

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


Interactive features

Swiping functionalities in Xamarin Forms DataGrid

Swiping

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.

Drag and drop functionalities in Xamarin Forms DataGrid

Drag and drop

Reorder rows and columns for additional end-user flexibility with column and row drag and drop.

Column resizing in Xamarin Forms DataGrid

Resizing

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.


Appearance

Styling and Theming in Xamarin Forms DataGrid

Styles

  • Customize styles for every view in the DataGrid to display visually appealing data.
  • Apply color to alternate rows and columns to improve readability.
  • Customize the font, font size, and font attributes for the record and header cells for an elegant look and feel.
  • Customize vertical or horizontal grid cell borders, or both. Customize the border color and border thickness, as well.

Cell style and row style based on conditions in Xamarin Forms DataGrid

Conditional styles

  • Customize cell and row appearances conditionally based on the data.
  • Apply styles and formatting to the data in the cells.
  • Style the rows and columns with customizable preferences over the selection.
  • Set any custom template to the cells or rows using template selectors. Customize the appearance based on the data conditionally.

Selection

  • Select a row with four built-in selection modes: single, multiple, single deselect, and none. The single deselect mode clears a selected row when it is touched again.
  • Apply animation to the selected row for the best selection experience.
  • Use the keyboard to navigate through rows and cells for desktop platforms. The last interacted row or cell is highlighted to be identifies as the current row or cell.
  • Customize the selection background and foreground color, as well as the border color and border width for the current cell.

Data virtualization

Xamarin Forms DataGrid with data virtualization

Data virtualization

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.

Xamarin Forms DataGrid with data displayed in pages

Paging

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

Exporting

Excel exporting functionalities in Xamarin Forms DataGrid

Excel export

Export the data in the Xamarin.Forms DataGrid to Excel file format with a variety of appearance customization options. Exclude specific columns and headers, set custom row heights and custom column widths, and much more. You can further customize the exported Excel file using the Syncfusion Xamarin Excel library.

PDF exporting functionalities in Xamarin Forms DataGrid

PDF export

Export data in a Xamarin.Forms DataGrid to PDF file format with a variety of appearance customization options. Exclude specific columns and headers, set custom row heights and 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.


Scrolling customizations

Scroll the data with the Xamarin.Forms DataGrid horizontally, vertically, or in both directions with various built-in scrolling modes:

  • Pixel: Scrolls the data for every pixel movement.
  • Pixel Line: Scrolls the data for every pixel and maintains the first record in view fully, like Excel.
  • Line: Scrolls the data based on the entire line movement.

Xamarin Forms DataGrid with built-in scrolling modes


XamarinForms DataGrid with Localization

Localization

All the Xamarin.Forms DataGrid static default strings in the user interface can be localized as needed.


Xamarin DataGrid Code Example

Easily get started with the Xamarin DataGrid using a few simple lines of C# code example as demonstrated below. Also explore our Xamarin DataGrid Example that shows you how to render and configure the DataGrid for Xamarin.Forms.

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             xmlns:local="clr-namespace:GettingStarted;assembly=GettingStarted"
             xmlns:syncfusion="clr-namespace:Syncfusion.SfDataGrid.XForms;assembly=Syncfusion.SfDataGrid.XForms" 
             x:Class="GettingStarted.Sample">

    <ContentPage.Content>
        <syncfusion:SfDataGrid x:Name="dataGrid" />
    </ContentPage.Content>
</ContentPage>
using Syncfusion.SfDataGrid.XForms;
using Xamarin.Forms;

namespace GettingStarted
{
    public class App : Application
    {
        SfDataGrid dataGrid;
        public App()
        {
            dataGrid = new SfDataGrid();
            MainPage = new ContentPage { Content = dataGrid };
        }
    }
}



150+ XAMARIN UI CONTROLS

ALL CONTROLS
  • Xamarin.Forms
  • Xamarin.Android
  • Xamarin.iOS
The most downloaded control (based on the nuget.org download count).

Frequently Asked Questions

The Syncfusion Xamarin DataGrid supports the following features:

  • Lightweight and entirely customizable. Easily bind and style data.
  • Built from the ground up to achieve the best possible performance, even when loading large data sets.
  • Has out-of-the-box features such as editing, swiping, dragging, loading more items, pull to refresh, and more.
  • One of the best Xamarin DataGrid in the market that offers feature-rich UI to interact with the software.
  • Simple configuration and API.
  • Expansive learning resources such as demos, documentation, and videos to learn quickly and get started with Xamarin DataGrid.

You can find our Xamarin DataGrid demo, which demonstrates how to render and configure DataGrid.

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.

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

Transform your applications today by downloading our free evaluation version
Download Free Trial No credit card required.

Syncfusion Xamarin.Forms Resources

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