Comcast / Comcast/react-data-grid
Support for Multi-Cell Select and Copy-Paste in React Data Grid
- Dominant language
- TypeScript
- Stars
- 7.7k
- Forks
- 2.2k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 33
Description
## Feature:
- Multi-Cell Select: The ability to select multiple cells at once, similar to how you can in spreadsheet applications like Excel.
- Copy-Paste: The ability to copy the selected cells and paste them into another location within the grid or into an external application like Excel.
## 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](https://github.com/adazzle/react-data-grid)):
console.log('Selection started:', args),
onUpdate: (args) => console.log('Selection updated:', args),
onComplete: (args) => console.log('Selection completed:', args)
}}
/>
Contributor guide
Assessment
This issue has not been assessed yet.