# Disable/enable row selection in table

**URL:** <https://forum.inductiveautomation.com/t/disable-enable-row-selection-in-table/112618>\
**Category:** Ignition\
**Tags:** ignition83, perspective\
**Created:** [December 4, 2025, 3:29pm UTC](https://forum.inductiveautomation.com/t/disable-enable-row-selection-in-table/112618 "2025-12-04T15:29:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmadariaga](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmadariaga/32/63201_2.png) [@mmadariaga](https://forum.inductiveautomation.com/u/mmadariaga)\
**Post date:** [December 4, 2025, 3:29pm UTC](https://forum.inductiveautomation.com/t/disable-enable-row-selection-in-table/112618/1 "2025-12-04T15:29:20Z")

</div>

Hello, I've got a button with this action:

```python
def runAction(self, event):
    self.view.custom.enable_selection = False
    import time
    time.sleep(0.1)
    self.view.custom.enable_selection = True

```

With the sleep, it works. But without it, enableRowSelection doesn't change to false then true, it just stays in true.

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [December 4, 2025, 4:36pm UTC](https://forum.inductiveautomation.com/t/disable-enable-row-selection-in-table/112618/2 "2025-12-04T16:36:46Z")

</div>

Not entirely sure what you are looking to accomplish here, but you are most likely just not “seeing” then change without the sleep.

That would be pretty much instantaneous without the sleep.

To test you can just do it like this and then watch the console as you click it.

```python
self.view.custom.enable_selection = False
system.perspective.print(‘Disabled’) 
self.view.custom.enable_selection = True
system.perspective.print(‘Enabled’) 

```

---

<div class="post-metadata">

**Author:** ![mmadariaga](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmadariaga/32/63201_2.png) [@mmadariaga](https://forum.inductiveautomation.com/u/mmadariaga)\
**Post date:** [December 5, 2025, 6:53am UTC](https://forum.inductiveautomation.com/t/disable-enable-row-selection-in-table/112618/3 "2025-12-05T06:53:12Z")

</div>

Yeah I mean that's the issue here. I want to give the user the ability to unselect all the rows by clicking a button, which can be done changing the `enableRowSelection` property to `False`. But, as the user still needs to select new rows after unselecting all the rows, I have to set the property back to `True`. I've tried using a change script but the same happens if I don't use `time.sleep`.

---

<div class="post-metadata">

**Author:** ![Aizhigit\_Mussali](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@Aizhigit\_Mussali](https://forum.inductiveautomation.com/u/Aizhigit_Mussali)\
**Post date:** [December 5, 2025, 8:44am UTC](https://forum.inductiveautomation.com/t/disable-enable-row-selection-in-table/112618/4 "2025-12-05T08:44:05Z")

</div>

Not sure about 8.3, but in 8.1 setting both `selectedColumn` and `selectedRow` to `None` would unselect all the rows.

```python
your_table_component.props.selection.selectedRow = None
your_table_component.props.selection.selectedColumn = None

```

(Edit: format correction)

---

<div class="post-metadata">

**Author:** ![mmadariaga](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmadariaga/32/63201_2.png) [@mmadariaga](https://forum.inductiveautomation.com/u/mmadariaga)\
**Post date:** [December 5, 2025, 8:59am UTC](https://forum.inductiveautomation.com/t/disable-enable-row-selection-in-table/112618/5 "2025-12-05T08:59:40Z")

</div>

Oh wow well this is embarrassing, I was overcomplicating it. Thanks a lot!
