# Change style of cell (component Table) via script - Perspective

**URL:** <https://forum.inductiveautomation.com/t/change-style-of-cell-component-table-via-script-perspective/44573>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 17, 2021, 10:45am UTC](https://forum.inductiveautomation.com/t/change-style-of-cell-component-table-via-script-perspective/44573 "2021-03-17T10:45:50Z")\
**Posts on this page:** 1\
**Showing post:** 30

<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:** [February 28, 2024, 3:13pm UTC](https://forum.inductiveautomation.com/t/change-style-of-cell-component-table-via-script-perspective/44573/30 "2024-02-28T15:13:58Z")

</div>

> [@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…

this is an example that uses dataset

---

_[View the full topic](https://forum.inductiveautomation.com/t/change-style-of-cell-component-table-via-script-perspective/44573)._
