# Hierarchical iosmobiletable

**URL:** <https://forum.xojo.com/t/hierarchical-iosmobiletable/64293>\
**Category:** iOS\
**Created:** [July 5, 2021, 7:54am UTC](https://forum.xojo.com/t/hierarchical-iosmobiletable/64293 "2021-07-05T07:54:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Richard\_Fellows](https://forum.xojo.com/letter_avatar_proxy/v4/letter/r/e5b9ba/32.png) [@Richard\_Fellows](https://forum.xojo.com/u/Richard_Fellows)\
**Post date:** [July 5, 2021, 7:54am UTC](https://forum.xojo.com/t/hierarchical-iosmobiletable/64293/1 "2021-07-05T07:54:30Z")

</div>

Hi, fairly new to Xojo and i trying to make an iOS app, i am wanting to make a Hierarchical iosmobiletable so that when the user clicks on the section title that title ‘closes’ making the whole table easier to navigate as more sections/ row are added. However i can find nothing on this anywhere, anyone got any pointers/ examples they can help me with?

---

<div class="post-metadata">

**Author:** ![Jeremie\_L](https://forum.xojo.com/user_avatar/forum.xojo.com/jeremie_l/32/150_2.png) [@Jeremie\_L](https://forum.xojo.com/u/Jeremie_L)\
**Post date:** [July 5, 2021, 2:13pm UTC](https://forum.xojo.com/t/hierarchical-iosmobiletable/64293/2 "2021-07-05T14:13:00Z")

</div>

I did that in this app [https://packr.app](https://packr.app)

It isn’t really the header that is clickable but the first row in each section.

 ![image](https://forum.xojo.com/uploads/default/original/2X/a/a35a6ded13c2facbf5a487229728579af79fec84.jpeg)

In your datasource logic, define a property such as “expanded” that will let the datasource know if that section has one row to display (not expanded) or several rows (expanded).
