Skip to content

The React Data Grid component is a customizable table-based grid for displaying, editing, adding, and deleting data in a React.js web application. It provides an intuitive interface for managing tabular data and offers flexibility for styling and extending functionality.

Notifications You must be signed in to change notification settings

Pranav-Programmer/Datagrid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Data Grid Component

The React Data Grid component provides a customizable data grid with editing, adding, and deleting functionality. It allows users to display and manipulate tabular data in a web application.

Component Features

  • Display data in a table format with customizable columns.
  • Edit existing data by clicking on the "Edit" button.
  • Add new rows to the grid with the ability to enter data.
  • Delete rows from the grid with the click of a button.
  • Save changes made to the data in real-time.
  • Responsive design for optimal viewing on different devices.

Installation

To use the React Data Grid component in your React.js web application, follow these steps:

  1. Install the required dependencies by running the following command:
  npm install @mui/material react react-dom react-datepicker
  1. Copy the 'Datagrid.js' file into your project's components directory.

  2. Import and use the 'Datagrid' component in your application. For example:

  import Datagrid from './components/Datagrid';

function App() {
  return (
    <div>
      <h1>My React App</h1>
      <Datagrid />
    </div>
  );
}
  1. Customize the component according to your needs by modifying the styling, column names, or data source.

Usage

The React Data Grid component provides the following functionalities:

  • Displaying existing data: The component takes an array of objects as input, where each object represents a row in the grid. The properties of each object correspond to the column names.

  • Editing data: Clicking the "Edit" button allows you to modify the data in a row. The changes are saved when the "Save" button is clicked.

  • Adding data: Use the input fields at the bottom of the grid to add new rows. Click the "Save" button to append the new data to the grid.

  • Deleting data: Click the "Delete" button to remove a row from the grid.

Make sure to handle the storage of data in your application. The component utilizes local storage to persist the changes made to the data.

image image

Customization

Contributions to the React Data Grid component are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository.

🚀 Credits

The React Data Grid component was created by Pranav Dharme.

Happy coding!

About

The React Data Grid component is a customizable table-based grid for displaying, editing, adding, and deleting data in a React.js web application. It provides an intuitive interface for managing tabular data and offers flexibility for styling and extending functionality.

Topics

Resources

Stars

Watchers

Forks