# 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:** 35

<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 29, 2024, 7:38am UTC](https://forum.inductiveautomation.com/t/change-style-of-cell-component-table-via-script-perspective/44573/35 "2024-02-29T07:38:01Z")

</div>

> [@Miguel\_Villasenor\_Es](#):
>
> How do I make it so that just the cell is stylized and not the whole row?

for the cell you need another value/style object at the specific value  
like here. replace the container\_type with your columns name "Status"

> [@Perspective table cell color](https://forum.inductiveautomation.com/t/perspective-table-cell-color/50047/2):
>
> ```auto
> #style cel to green 					
> row_object['value']['container_type'] ={'value':row_value['container_type'],'style':style_green}
> 
> ```

> [@Miguel\_Villasenor\_Es](#):
>
> `range(value.getColumnCount())`

also note that lower in this topic i suggest using something different than this. read the whole topic should get you all the answers you need 🙂

> [@Miguel\_Villasenor\_Es](#):
>
> Would you recomend the databinding transform, depicted above ^ or the way I've done it,

You should definitly do the transform for something like this

---

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