# Perspective Table set row color

**URL:** <https://forum.inductiveautomation.com/t/perspective-table-set-row-color/87170>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 12, 2024, 8:23am UTC](https://forum.inductiveautomation.com/t/perspective-table-set-row-color/87170 "2024-03-12T08:23:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![taohongyu88](https://avatars.discourse-cdn.com/v4/letter/t/f05b48/32.png) [@taohongyu88](https://forum.inductiveautomation.com/u/taohongyu88)\
**Post date:** [March 12, 2024, 8:23am UTC](https://forum.inductiveautomation.com/t/perspective-table-set-row-color/87170/1 "2024-03-12T08:23:43Z")

</div>

How to set every row's color by tag?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/e/2ed352ea67f548b2510a410ad89ee41e4fdeb11c.png)

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/c/0cfd310dafcb4ca3fa582c6a1db58a2dc5121bc2.png)

Not set all row's color to Red,  
if value =1: set the second row's color to Red;  
if value =2: set the third row's color to Red;  
How to bind?

---

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [March 12, 2024, 8:30am UTC](https://forum.inductiveautomation.com/t/perspective-table-set-row-color/87170/2 "2024-03-12T08:30:42Z")

</div>

You have to set the styling in the table data, e.g. using a transform:

> **[Perspective - Table | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/appendix/components/perspective-components/perspective-display-palette/perspective-table#example-1-styling-rows-based-on-value---json-data)**
>
> The Table component displays database data in tabular form.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [March 12, 2024, 2:45pm UTC](https://forum.inductiveautomation.com/t/perspective-table-set-row-color/87170/3 "2024-03-12T14:45:44Z")

</div>

See this post: [Perspective table cell color](https://forum.inductiveautomation.com/t/perspective-table-cell-color/50047)

---

<div class="post-metadata">

**Author:** ![taohongyu88](https://avatars.discourse-cdn.com/v4/letter/t/f05b48/32.png) [@taohongyu88](https://forum.inductiveautomation.com/u/taohongyu88)\
**Post date:** [March 15, 2024, 3:58am UTC](https://forum.inductiveautomation.com/t/perspective-table-set-row-color/87170/4 "2024-03-15T03:58:23Z")

</div>

Yeah, I resolved it .  
Thank you very much.

---

<div class="post-metadata">

**Author:** ![taohongyu88](https://avatars.discourse-cdn.com/v4/letter/t/f05b48/32.png) [@taohongyu88](https://forum.inductiveautomation.com/u/taohongyu88)\
**Post date:** [March 15, 2024, 4:00am UTC](https://forum.inductiveautomation.com/t/perspective-table-set-row-color/87170/5 "2024-03-15T04:00:31Z")

</div>

You are friendly .  
Thank you very much!

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/c/8c6285c42ce8678211748b072ab3f0e122562343.png)
