# How to know which row is expanded in a table?

**URL:** <https://forum.inductiveautomation.com/t/how-to-know-which-row-is-expanded-in-a-table/81743>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [November 9, 2023, 8:12pm UTC](https://forum.inductiveautomation.com/t/how-to-know-which-row-is-expanded-in-a-table/81743 "2023-11-09T20:12:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danilo\_Rocha](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@Danilo\_Rocha](https://forum.inductiveautomation.com/u/Danilo_Rocha)\
**Post date:** [November 9, 2023, 8:12pm UTC](https://forum.inductiveautomation.com/t/how-to-know-which-row-is-expanded-in-a-table/81743/1 "2023-11-09T20:12:30Z")

</div>

I am using the '.expandSubviews()' functions so that when the operator clicks anywhere in the row, the subview is displayed.

I would like to know which row is expanded in order to use '.collapseSubviews()'.

Is there any function that returns which rows are expanded in a table?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [November 20, 2023, 5:19pm UTC](https://forum.inductiveautomation.com/t/how-to-know-which-row-is-expanded-in-a-table/81743/2 "2023-11-20T17:19:09Z")

</div>

No, there is no built-in function to determine which rows have their subviews expanded.
