# Programmatically select multiple rows in a table

**URL:** <https://forum.inductiveautomation.com/t/programmatically-select-multiple-rows-in-a-table/5845>\
**Category:** Ignition\
**Created:** [February 11, 2013, 7:55pm UTC](https://forum.inductiveautomation.com/t/programmatically-select-multiple-rows-in-a-table/5845 "2013-02-11T19:55:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![denji26](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/denji26/32/5805_2.png) [@denji26](https://forum.inductiveautomation.com/u/denji26)\
**Post date:** [February 11, 2013, 7:55pm UTC](https://forum.inductiveautomation.com/t/programmatically-select-multiple-rows-in-a-table/5845/1 "2013-02-11T19:55:29Z")

</div>

The selectedRows property of a table is read only, so is there another way to programmatically select multiple rows in a table?

---

<div class="post-metadata">

**Author:** ![James.Lorenz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james.lorenz/32/3290_2.png) [@James.Lorenz](https://forum.inductiveautomation.com/u/James.Lorenz)\
**Post date:** [February 11, 2013, 8:35pm UTC](https://forum.inductiveautomation.com/t/programmatically-select-multiple-rows-in-a-table/5845/2 "2013-02-11T20:35:35Z")

</div>

I don’t think you can programmatically select multiple rows, unless they are all within the same interval (in which case you would use setRowSelectionInterval()). You can use setSelectedRow() to change a single row. If you use setRowSelectionInterval(), be sure to change the table property “selection mode” to “multiple interval”. Here’s some more information about table functions:

[inductiveautomation.com/support/ … itable.htm](http://inductiveautomation.com/support/usermanuals/ignition/tables_pmitable.htm)

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [February 12, 2013, 12:10pm UTC](https://forum.inductiveautomation.com/t/programmatically-select-multiple-rows-in-a-table/5845/3 "2013-02-12T12:10:14Z")

</div>

You can call setSelectionInterval multiple times.
