react-datasheet-grid
react-datasheet-grid copied to clipboard
Question: Accessing a cell by its id
I'm trying to color code cells based on some failure condition.
Is there a way to access a given cell by by its cell id?
Thanks a lot
Any inputs on this?
Basically When user Submits the sheet, the empty cells are to be highlighted. Is there a way to achieve this without accessing the cell by its id?
You can use cellClassName prop to do it
Check if the cell value are empty in rowData
and if the form is submitted. If yes, then apply the class which has the background you want.