# Highlight a row in a power table upon opening window

**URL:** <https://forum.inductiveautomation.com/t/highlight-a-row-in-a-power-table-upon-opening-window/34081>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [April 21, 2020, 4:30pm UTC](https://forum.inductiveautomation.com/t/highlight-a-row-in-a-power-table-upon-opening-window/34081 "2020-04-21T16:30:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdia](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@mdia](https://forum.inductiveautomation.com/u/mdia)\
**Post date:** [April 21, 2020, 4:30pm UTC](https://forum.inductiveautomation.com/t/highlight-a-row-in-a-power-table-upon-opening-window/34081/1 "2020-04-21T16:30:58Z")

</div>

I am trying to highlight the first row of a power table component upon opening the window that it is contained in. I managed to set the selectedRow to 0 using the “Initialize” event handler on the table; however, that sets the selectedRow to 0 without highliting it. I would also like to highlight that row so that the user would be able to see it. Any ideas on how to do this? Thanks!

---

<div class="post-metadata">

**Author:** ![zxcslo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zxcslo/32/61610_2.png) [@zxcslo](https://forum.inductiveautomation.com/u/zxcslo)\
**Post date:** [April 21, 2020, 5:04pm UTC](https://forum.inductiveautomation.com/t/highlight-a-row-in-a-power-table-upon-opening-window/34081/2 "2020-04-21T17:04:34Z")

</div>

Look [here](http://forum.inductiveautomation.com/t/set-selected-row-for-power-table-on-window-opening/14693/3?u=zxcslo)…

Put his in Initialize:

```auto
	def selectrow(table = self):
		table.selectedRow = 0
	system.util.invokeLater(selectrow,1000)

```

You can experiment with the delay (1000ms)…

---

<div class="post-metadata">

**Author:** ![mdia](https://avatars.discourse-cdn.com/v4/letter/m/ce73a5/32.png) [@mdia](https://forum.inductiveautomation.com/u/mdia)\
**Post date:** [April 21, 2020, 5:20pm UTC](https://forum.inductiveautomation.com/t/highlight-a-row-in-a-power-table-upon-opening-window/34081/3 "2020-04-21T17:20:16Z")

</div>

that is what i have right now, and that works. It does set the selectedRow to 0, but it does not highlight it.

---

<div class="post-metadata">

**Author:** ![zxcslo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/zxcslo/32/61610_2.png) [@zxcslo](https://forum.inductiveautomation.com/u/zxcslo)\
**Post date:** [April 21, 2020, 5:31pm UTC](https://forum.inductiveautomation.com/t/highlight-a-row-in-a-power-table-upon-opening-window/34081/4 "2020-04-21T17:31:34Z")

</div>

Before I posted I tried my self. It highlights in my power table in v7.9.13.

 ![highlightFirstRow](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/650fe7c5631330854eb29d7ba4e9a7ae7faabe09.gif)
