# Change color row if checkbox ticked

**URL:** <https://forum.inductiveautomation.com/t/change-color-row-if-checkbox-ticked/10492>\
**Category:** Ignition\
**Created:** [September 22, 2015, 7:23am UTC](https://forum.inductiveautomation.com/t/change-color-row-if-checkbox-ticked/10492 "2015-09-22T07:23:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![trishhiyah](https://avatars.discourse-cdn.com/v4/letter/t/9fc29f/32.png) [@trishhiyah](https://forum.inductiveautomation.com/u/trishhiyah)\
**Post date:** [September 22, 2015, 7:23am UTC](https://forum.inductiveautomation.com/t/change-color-row-if-checkbox-ticked/10492/1 "2015-09-22T07:23:33Z")

</div>

Hi. I need to do this so the selected rows within a table are clearly highlighted. The checkboxes are in column 7. Is there a way to change the color of all cells in that row? I have tested the background color mapping but it does not highlighted the row selected, and how can I revert colors when unchecked? Thanks guys

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [September 22, 2015, 11:29am UTC](https://forum.inductiveautomation.com/t/change-color-row-if-checkbox-ticked/10492/2 "2015-09-22T11:29:00Z")

</div>

Use the Power Table. Use the configureCell extension function on the Power Table.

There is already an example of setting the background color of selected rows in the configureCell extension function of the Power Table. It needs to be uncommented.

`	if selected:
		return {'background': self.selectionBackground}
	else:
		return {'background': 'white'}`Best,
