Trusted by the world’s leading companies
Overview
Explore Live DemoThe React Data Grid is a feature-rich grid component for displaying data in a tabular format. Its wide range of functionalities includes data binding, editing, Excel-like filtering, custom sorting, aggregating rows, selection, and support for Excel, CSV, and PDF formats.
Why choose Syncfusion React Data Grid?
High performance
Well thought out efforts, and focuses mainly on fast paced performance to load millions of records in just a second.
Seamless data binding
Bind data seamlessly with various local and remote data sources such as JSON, OData, WCF, and RESTful web services with the help of data manager.
Adapts to any resolution
DataGrid has a highly responsive layout and an optimized design for desktops, touch screens, and smart phones. It works well on all mobile phones that use iOS, Android, or Windows OS.
Flexible editing
The React Data Grid performs create, read, update, and delete operations (CRUD) more easily with a list of business objects or remote data service with the help of a data manager.
Create your own template designs
Allows users to create custom user experiences in the React Grid based on their application needs using a wide range of template options.
Attractive customizable themes
Cutting-edge design with 5+ built-in themes such as Fluent, Tailwind CSS, Bootstrap, Material, Fabric, and more. Utilize the online Theme Studio tool to customize themes easily.
Easy export and printing
Export the Data Grid in various file formats, including Excel, PDF, and CSV. Print all the rows, regardless of the number of pages, as well as the currently viewed page.
Globalization and localization
Enables users from different locales to use them by formatting dates, currency, and numbering to suit preferences.
AI-Ready DataGrid for Faster Insights
Our DataGrid comes AI-ready out of the box. Easily extend it with semantic search, anomaly detection, or any other AI operation you need. Get fast answers and smarter data exploration, all in one grid.
-
Semantic search: Plug in your preferred NLP model to let users query with natural phrases, no exact keywords required.
- See how to add semantic search
-
Anomaly detection: Connect an ML service to find unusual trends or errors quickly and keep business on track.
- See how to add anomaly detection
React DataGrid Code Example
Easily get started with the React Data Grid using a few simple lines of TSX code as demonstrated below. Also explore our React DataGrid Example which shows you how to render and configure a DataGrid in React.
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import { GridComponent, ColumnsDirective, ColumnDirective } from '@syncfusion/ej2-react-grids';
import { orderDetails } from './data';
import { SampleBase } from '../common/sample-base';
export class Default extends SampleBase<{}, {}> {
render() {
return (
<div className='control-pane'>
<div className='control-section'>
<GridComponent dataSource={orderDetails} height='350'>
<ColumnsDirective>
<ColumnDirective field='OrderID' headerText='Order ID' width='120' textAlign='Right'></ColumnDirective>
<ColumnDirective field='CustomerName' headerText='Customer Name' width='150'></ColumnDirective>
<ColumnDirective field='OrderDate' headerText='Order Date' width='130' format='yMd' textAlign='Right' />
<ColumnDirective field='Freight' headerText='Freight' width='120' format='C2' textAlign='Right' />
<ColumnDirective field='ShippedDate' headerText='Shipped Date' width='130' format='yMd' textAlign='Right'></ColumnDirective>
<ColumnDirective field='ShipCountry' headerText='Ship Country' width='150'></ColumnDirective>
</ColumnsDirective>
</GridComponent>
</div>
</div>
)
}
}Editing
The React DataGrid component supports create, read, update, and delete operations (CRUD). In addition to built-in editor components to edit a particular column value, custom editor components can be created using templates according to the application’s needs. With the help of a data manager, you can perform editing operations with array collection or remote data service.
Sorting
Sort rows either in ascending or descending order against a column by simply clicking the header in React DataGrid. Sort multiple columns’ data by holding the Ctrl key + header click. In addition, define your own custom sorting logic based on the application needs.
Filtering
Filtering helps view particular or related records that meet a given criteria in the data grid. The data grid supports various filter types, including powerful Excel-like filters. Choose the appropriate filter type, define your own custom filtering logic, and customize the filtering UI based on the application’s needs. Diacritic characters can also be filtered.
Paging
Paging is used to view a segment of data from the assigned data source. The React DataGrid offers a built-in pager UI with options to customize its entire UI. It also has an on-demand paging mode for effective data retrieval from remote web services.
Selection
Select rows or cells using the checkbox or by simply clicking them. Select more than one row or cell by holding Ctrl, Shift, or Command, or programmatically.
Grouping
Group rows to display the data in an organized hierarchical structure in ascending or descending order to facilitate easier expansion and collapse of records. There is an option to group records of the desired column by simple drag and drop of that column in an interactive drop area.
Aggregation
Aggregates for column values can be easily displayed using the aggregate feature. Aggregates can be customized to show their value in individual summary rows, individual group summary rows, or group caption rows.
Column
Columns define the schema of the data source in the React Data Grid. It supports formatting, auto-generating columns, column definitions, freezing rows and columns, column spanning, text wrapping, column chooser, column menu, and other features.
Frozen rows and columns
Frozen rows and columns are visible at the top and on the left, right, both , or fixed position, respectively, making the remaining grid content scrollable. This feature is mainly used to compare cell values.
Sticky header
The React Data Grid header has to be in a fixed position when scrolling the document vertically to visualize the data grid content along with the column header.
Row drag and drop
The React Grid allows users to drag and drop rows to another DataGrid or custom component. Users can also drag and drop rows within the same DataGrid using the drag icon and transfer rows between different groups.
Master-detail Grid
React Master Detail Grid is a use-case scenario in which a record’s details are viewed in a separate data grid by clicking a particular row.
Adaptive UI layout
The React Data Grid user interface is customized and redesigned for great views and usability on small screens. Filter, sort, search, and edit dialogs adaptive to the screen size and also render row elements in a vertical direction.
Skeleton loading indicator
The React Data Grid control shows the Shimmer effect as a loading indicator while fetching data and binding it to the grid during initial rendering, refreshing, or after performing grid actions like sorting, filtering, grouping, and more. The data grid offers two types of loading indicator effects: spinner and shimmer.
State management
The state management in the React Data Grid component allows you to maintain the grid’s state even after a browser refresh or when navigating to a different page within the same browser session. This feature is especially beneficial for retaining the grid’s configuration and data following a page reload.
Live update
The DataGrid updates live data in its cells at specific time intervals. These updates occur without causing any lag or slowdown, ensuring that the system remains highly responsive and efficient.
Integrated Charts with Data Grid
The Data Grid now integrates with the Charts component, transforming selected grid data into dynamic, interactive visualizations. This powerful combination of tables and charts empowers users to gain clearer insights at a glance. Customize the chart types, axes, and visuals.
Additional features
Row height
Row height is a major factor when displaying the number of records in the viewport, and it is easily customizable based on the application’s UI requirements. It is also possible to set row height conditionally.
Copy to clipboard
The clipboard allows users to copy data from selected rows or cells into it. The Ctrl+C and Ctrl+Shift+H key combinations copy data with and without headers, respectively.
Context menu
Performs various actions in a Data Grid using the popup menu that appears when the cell, header, or pager is right-clicked. In addition to built-in default menu items, custom context menu items can be added.
Width and height
Set the width and height properties to change the size of the data grid. When the content overflows the grid element, horizontal and vertical scrollbars will appear. To fill the data grid’s parent container, simply set the height and width to 100%.
Stacked headers
Stacked headers allow grouping and visualizing column headers in a stacked manner. The number of columns that can be stacked is unlimited. Perform all Data Grid actions even when the columns are stacked.
Accessibility
Keyboard navigation
React Data Grid ensures that every cell is accessible using the keyboard. Major features like sort, select, and edit can be performed using keyboard commands alone; no mouse interaction is required. This helps in creating highly accessible applications using this component.
Screen reader
The React Data Grid view has complete WAI-ARIA accessibility support. Its UI includes high-contrast visual elements that help visually impaired people to have the best viewing experience. Also, valid UI descriptions are easily accessible through assistive technologies such as screen readers.
Right to left (RTL)
Right-to-left rendering allows displaying the text and layout of the Data Grid from right to left. This improves the user experience and accessibility for RTL languages.
Mobile-optimized and touch-friendly
DataGrid in React has a highly responsive layout and an optimized design for desktops, touch screens, and smart phones. It works well on all mobile phones that use iOS, Android, or Windows 8 OS.
Touch support
User-friendly touch gestures and an interactive UI design provide the best user experience. All React Grid features work on touch devices with zero configuration.
Responsive pager
The React DataGrid pager acts intelligently and changes its complete UI responsively based on the dimension. Its optimized design provides the best UI interaction on different devices.
Not sure how to create your first React Data Grid? Our tutorial videos and documentation can help.
I’d love to watch it now I’d love to read it nowDiscover Syncfusion’s Complete React Component Ecosystem
Explore over 145+ React UI components featuring established, production-ready controls and the latest pure React components built natively for modern web app development.
-
React Components
-
Pure React Components
-
SMART COMPONENTSGRIDSDATA VISUALIZATIONDROPDOWNSFILE VIEWERS & EDITORSBUTTONSINTERACTIVE CHATINPUTSNAVIGATIONFORMSNOTIFICATIONS
-
GRIDSDATA VISUALIZATIONNAVIGATIONINPUTS
Frequently Asked Questions
Why should you choose Syncfusion React DataGrid?
The Syncfusion React DataGrid offers the following features:
Load millions of records in just a second.
- Mobile-first design that adapts to any resolution.
Flexible data binding with support to use local and remote data sources such as JSON, RESTful services, OData services, and WCF services.
Out-of-the-box Excel-like filtering and grouping options.
Countless column customizations and data summaries.
Seamless data exporting options like PDF, CSV, and Excel.
- One of the best React DataGrid in the market that offers feature-rich UI to interact with the software.
Simple configuration and API.
- Supports all modern browsers.
Expansive learning resources such as demos, documentation, and videos to learn quickly and get started with React DataGrid.
Where can I find the Syncfusion React Data Grid demo?
You can find our React Data Grid demo, which demonstrates how to render and configure the Data Grid.
What is a React Data Grid?
How to enable filtering in React Data Grid?
To use the filtering feature, inject the Filter module into the grid. To enable filtering in the Syncfusion React Grid, set the allowFiltering property to true. This renders a filter bar beneath the column headers, allowing users to input filter criteria. The Grid offers multiple filtering modes, which are configurable via the filterSettings.type property.
How do you handle large datasets in a React Data Grid?
The Grid can handle large data sets by using the paging, virtual scrolling, and infinite scrolling features.
How do you implement inline editing in React Data Grid?
To enable the editing functionality directly within the grid, you need to set the allowEditing, allowAdding, and allowDeleting properties within the editSettings to true. Editing requires a primary key column for CRUD operations. To define the primary key, set isPrimaryKey to true in a particular column.
Can I download and utilize the Syncfusion React DataGrid for free?
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.
How do I get started with Syncfusion React DataGrid?
A good place to start would be our comprehensive getting started documentation.
What are the features of a React Data Grid?
React Grid offers features like sorting, filtering, pagination, editing, aggregates, grouping, exporting to Excel/PDF, column resizing, and virtualization.
How do you add sorting to a React Data Grid?
To enable sorting in the Syncfusion React Grid, follow these steps:1. Ensure that the Sort module is imported and injected into your Grid component.2. Set the allowSorting property to true to activate sorting. 3. Use the sortSettings property to define initial sorting configurations or customize sorting behavior.
Can React Data Grid handle real-time data?
The Syncfusion React Grid handles real-time data through integration with WebSockets and SignalR, enabling dynamic updates and seamless user experiences.
How do I configure server-side pagination in React Data Grid?
The Grid handles server-side pagination by enabling the Syncfusion inbuilt data adaptor or using custom data binding concepts.
Our Customers Love Us
Here are some of their experiences.
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.
Recent activities in React DataGrid blogs and tutorials
The React DataGrid blog and tutorial videos posts will guide you in building your first app with React components. They provide problem-solving strategies, describe features and functionalities, announce new feature releases, explain best practices, and showcase example scenarios. Explore our latest posts on our blog and tutorial video channels for React DataGrid updates.