# Row selection stays with row position instead of row values when table is re-sorted

**URL:** <https://forum.inductiveautomation.com/t/row-selection-stays-with-row-position-instead-of-row-values-when-table-is-re-sorted/108669>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [July 18, 2025, 12:46pm UTC](https://forum.inductiveautomation.com/t/row-selection-stays-with-row-position-instead-of-row-values-when-table-is-re-sorted/108669 "2025-07-18T12:46:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JVDM](https://avatars.discourse-cdn.com/v4/letter/j/ac8455/32.png) [@JVDM](https://forum.inductiveautomation.com/u/JVDM)\
**Post date:** [July 18, 2025, 12:46pm UTC](https://forum.inductiveautomation.com/t/row-selection-stays-with-row-position-instead-of-row-values-when-table-is-re-sorted/108669/1 "2025-07-18T12:46:05Z")

</div>

Designer Version 8.1.47

I hope I was able to clearly describe the issue at hand. If necessary, I'll make a video to demo my issue after the weekend.

For R&D purposes I have a table with 9 rows (which will grow) and 22 columns. I can change the value of cells in four columns externally, but only if it is in the Selected Row.

Imagine I sort the table based on column X and I have selected the 9th row.  
While the 9th row is selected, I change the value of the cell in the selected row in column X.  
Because the table is sorted by column X's value , the selected row is moved from 9th to (e.g.) the first position, but the selection stays in the 9th row.

Since I am no longer selecting the same row as I was before, I would have to find the last row again if I want to change any of the other columns.

Is this intended behavior?  
If so, is there a way around it by either not sorting the rows instantly or the selection moving with the value?

---

<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:** [July 18, 2025, 12:54pm UTC](https://forum.inductiveautomation.com/t/row-selection-stays-with-row-position-instead-of-row-values-when-table-is-re-sorted/108669/2 "2025-07-18T12:54:41Z")

</div>

Row selection in Vision tables is exposed only by row index, not by row content. So, yes, intended behavior.

If you want to select by some value (ID, perhaps) in a column, and have selection follow that, you will need a change script on the table's data property to update the selection index to follow the new location of that ID value. Vision won't do this for you.

Consider _ **not** _ using the table's native sorting capabilities.
