# Set Background color to cell and row in same table in perspective

**URL:** <https://forum.inductiveautomation.com/t/set-background-color-to-cell-and-row-in-same-table-in-perspective/50769>\
**Category:** Ignition\
**Created:** [September 9, 2021, 1:19pm UTC](https://forum.inductiveautomation.com/t/set-background-color-to-cell-and-row-in-same-table-in-perspective/50769 "2021-09-09T13:19:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![victordcq](https://avatars.discourse-cdn.com/v4/letter/v/f6c823/32.png) [@victordcq](https://forum.inductiveautomation.com/u/victordcq)\
**Post date:** [September 9, 2021, 1:42pm UTC](https://forum.inductiveautomation.com/t/set-background-color-to-cell-and-row-in-same-table-in-perspective/50769/2 "2021-09-09T13:42:30Z")

</div>

There have been posts about this before:  
you have to adjust the data input with a transform script

> [@Perspective table cell color](https://forum.inductiveautomation.com/t/perspective-table-cell-color/50047/2):
>
> you have to set the style/value a “level” deeper, like so: the row here is helsinki, the column is jakarta [image] [image] for the example code it would be something like: it can be a bit cleaner but this should get you started xd if value.getColumnName(col) == 'container\_type': if value.getValueAt(row, col) == 'can': #style row to orange row\_style = style\_orange elif value.getValueAt(row, col) == 'bottle': #style cel to green row\_object['value']['conta…

---

_[View the full topic](https://forum.inductiveautomation.com/t/set-background-color-to-cell-and-row-in-same-table-in-perspective/50769)._
