# How to set Background color of table in flex repeater

**URL:** <https://forum.inductiveautomation.com/t/how-to-set-background-color-of-table-in-flex-repeater/64219>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [September 19, 2022, 9:59am UTC](https://forum.inductiveautomation.com/t/how-to-set-background-color-of-table-in-flex-repeater/64219 "2022-09-19T09:59:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitinkolhe11](https://avatars.discourse-cdn.com/v4/letter/n/df705f/32.png) [@nitinkolhe11](https://forum.inductiveautomation.com/u/nitinkolhe11)\
**Post date:** [September 19, 2022, 9:59am UTC](https://forum.inductiveautomation.com/t/how-to-set-background-color-of-table-in-flex-repeater/64219/1 "2022-09-19T09:59:19Z")

</div>

I am using Flex Repeater, in Flex Repeater I have called One Label & table component.

Ii want to set background color to table Row, can anyone guide me on the same

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [September 19, 2022, 11:32am UTC](https://forum.inductiveautomation.com/t/how-to-set-background-color-of-table-in-flex-repeater/64219/2 "2022-09-19T11:32:20Z")

</div>

Hello and welcome,

Can you be more specific as to what you want to do ?  
Setting the background color of a table is done by adding `backgroundColor` to its styles properties, but I suspect there’s more to your request than just that.  
Do you need to make the color dynamic ?  
Do you need to color only certain rows ?  
etc.

---

<div class="post-metadata">

**Author:** ![nitinkolhe11](https://avatars.discourse-cdn.com/v4/letter/n/df705f/32.png) [@nitinkolhe11](https://forum.inductiveautomation.com/u/nitinkolhe11)\
**Post date:** [September 19, 2022, 1:26pm UTC](https://forum.inductiveautomation.com/t/how-to-set-background-color-of-table-in-flex-repeater/64219/3 "2022-09-19T13:26:03Z")

</div>

Hi,  
Actually i have flex repeater & i have called table component & label component in flex repeater & i am fetching data from the database table through scripting, In flex repeater instances i have got three column out of that first column i have binded to label, second column is as a dataset binded to Table & third column is for background color of each row of table, but i am facing issue to assign background color of each row of table, i need help on the binding background color,

Thank You

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [September 20, 2022, 8:51am UTC](https://forum.inductiveautomation.com/t/how-to-set-background-color-of-table-in-flex-repeater/64219/4 "2022-09-20T08:51:26Z")

</div>

I’m having difficulties understanding, can you show us with screenshots what you have, and explain point by point what you want to achieve ?
