adazzle / react-data-grid

Feature-rich and customizable data grid React component
https://adazzle.github.io/react-data-grid/
Other
7k stars 2.18k forks source link

Support for Multi-Cell Select and Copy-Paste in React Data Grid #3609

Open AvyukthReddy opened 1 month ago

AvyukthReddy commented 1 month ago

Feature:

Use case:

Bulk editing grid data.

Proposed solution:

We can create a prop cellRangeSelection to handle the selection and copy-paste actions. Here’s an example of how you might set it up (already available in legacy versions of https://github.com/adazzle/react-data-grid):

<DataGrid cellRangeSelection={{ onStart: (args) => console.log('Selection started:', args), onUpdate: (args) => console.log('Selection updated:', args), onComplete: (args) => console.log('Selection completed:', args) }} />

softmarshmallow commented 1 month ago

this is something you're gonna have to implement yourself.