# Background color of every row

**URL:** <https://forum.inductiveautomation.com/t/background-color-of-every-row/11382>\
**Category:** Ignition\
**Created:** [March 17, 2016, 10:31pm UTC](https://forum.inductiveautomation.com/t/background-color-of-every-row/11382 "2016-03-17T22:31:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ella\_ramos](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ella_ramos/32/3455_2.png) [@ella\_ramos](https://forum.inductiveautomation.com/u/ella_ramos)\
**Post date:** [March 17, 2016, 10:31pm UTC](https://forum.inductiveautomation.com/t/background-color-of-every-row/11382/1 "2016-03-17T22:31:35Z")

</div>

In relation to this question :

[inductiveautomation.com/forum/v … 70&t=15305](https://inductiveautomation.com/forum/viewtopic.php?f=70&t=15305)

When I applied the answer, when selecting a row or a cell, it does not highlight the selected row/cell because of the added code on the configure cell.

We dont want that because users are having a hard time knowing which row/cell they selected without the selection background.

Is there any other way to change color of row depending on value of a column?

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [March 17, 2016, 10:42pm UTC](https://forum.inductiveautomation.com/t/background-color-of-every-row/11382/2 "2016-03-17T22:42:00Z")

</div>

Just put the isSelected first.

```auto
	if selected:
		return {'background': self.selectionBackground}
	isChecked = self.data.getValueAt(rowIndex,"Boolean Column")
	if isChecked:
		return {'background':self.SomeColor}
```
