react-data-grid icon indicating copy to clipboard operation
react-data-grid copied to clipboard

Render single cell(s) in row based on row/column index

Open chriscarex opened this issue 7 years ago • 3 comments

Which version of React JS are you using?

☣️ Not officially supported, expect warnings and errors ☣️

  • [ ] v16.x.x

Which browser are you using?

✅ Officially supported ✅

  • [ ] Chrome

⚠️ Not officially supported, but "should work" ⚠️

  • [ ] Firefox

I'm submitting a ...

  • [ ] 💡 Feature Request

Issue Details

I am trying to change the background of a single cell in the row. I used rowRenderer but there's no way to get the column ID at the moment.

Would be nice to get the column ID or to have any other way to style a particular cell based on row/column coordinates.

Also, I should be able to get those coordinates before clicking on the cell.

I looked on the issues and googled around but didn't find anything similar, am I missing something?

chriscarex avatar Feb 20 '19 17:02 chriscarex

You can use the property "formatter". All you need to do is to put the extra messages in the "row" and the "column". http://adazzle.github.io/react-data-grid/docs/examples/cell-formatting

vickychu avatar Feb 27 '19 09:02 vickychu

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please reopen this if you feel it has been incorrectly closed and we will do our best to look into it. Thank you for your contributions.

stale[bot] avatar Mar 29 '19 10:03 stale[bot]

Hello, I tried to achieve this with formatter property, but it only changes the background of the text and not the entire cell, how to change the background of entire cell when data of the grid changes in realtime?

jaggukaka avatar Aug 20 '19 07:08 jaggukaka