# Row selected problem in Perspective table

**URL:** <https://forum.inductiveautomation.com/t/row-selected-problem-in-perspective-table/100580>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [January 8, 2025, 12:31pm UTC](https://forum.inductiveautomation.com/t/row-selected-problem-in-perspective-table/100580 "2025-01-08T12:31:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [January 8, 2025, 12:31pm UTC](https://forum.inductiveautomation.com/t/row-selected-problem-in-perspective-table/100580/1 "2025-01-08T12:31:46Z")

</div>

Hello everyone,  
I'm going crazy trying to figure out how to fix this issue I'm having with a Table in Ignition Perspective.

Basically, when a row is selected (even though the property  
`props.selectedRow: null`)  
doesn't allow it to be selected further, you have to change the row, go back, and then reselect it.

I can't figure out how to clear this selection. When I first enter the view, no row is selected, and I’d like to understand which property would allow me to reset the situation to that initial state.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/5/d5f64db433900490bf976c35fbcc8c06162ad1e9.png)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 8, 2025, 1:36pm UTC](https://forum.inductiveautomation.com/t/row-selected-problem-in-perspective-table/100580/2 "2025-01-08T13:36:01Z")

</div>

The trick is to set `enableRowSelection` to `False`, and have a change script on `selectedRow` looking for `None`, and then changing `enableRowSelection` back to `True`. The code must **not** set `enableRowSelection` to `False` when `selectedRow` is already `None`.

Basically, row selection can only be performed _reliably_ by the client browser. When you disable row selection, that state gets sent to the browser, and **it** clears the selection. When you see that change back in the gateway, you can re-enable row selection.

---

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [January 8, 2025, 1:37pm UTC](https://forum.inductiveautomation.com/t/row-selected-problem-in-perspective-table/100580/3 "2025-01-08T13:37:28Z")

</div>

Thanks @pturmel, I try this!

Have a nice day
