# Table Hide a Row

**URL:** <https://forum.inductiveautomation.com/t/table-hide-a-row/14517>\
**Category:** Ignition\
**Created:** [June 14, 2017, 5:33pm UTC](https://forum.inductiveautomation.com/t/table-hide-a-row/14517 "2017-06-14T17:33:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![weertske](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/weertske/32/3353_2.png) [@weertske](https://forum.inductiveautomation.com/u/weertske)\
**Post date:** [June 14, 2017, 5:33pm UTC](https://forum.inductiveautomation.com/t/table-hide-a-row/14517/1 "2017-06-14T17:33:29Z")

</div>

Is there a way to hide a row or set the row height to zero on either the Table or Power Table component?

---

<div class="post-metadata">

**Author:** ![jrosenkrans](https://avatars.discourse-cdn.com/v4/letter/j/48db29/32.png) [@jrosenkrans](https://forum.inductiveautomation.com/u/jrosenkrans)\
**Post date:** [June 22, 2017, 9:18pm UTC](https://forum.inductiveautomation.com/t/table-hide-a-row/14517/2 "2017-06-22T21:18:24Z")

</div>

Good Afternoon,  
I accomplished the task with the following syntax:

_self.getTable().setRowHeight(rowIndex,0)_

This is done within the Powertable component by utilizing the extension functions, which can be reached by right clicking the component and selecting “scripting” which will show a list of available functions to setup. For this example I used the double click extension function (OnDoubleClick) which we will use to change a selected rows height to 0. For these changes to stay the tables polling mode will need to be off and use a “Refresh” button to renew the screen. Keep in mind if you wanted to assign a button or another component to complete the action of hiding the code will resemble the following:

_rows = event.source.parent.getComponent(‘PowerTable’).getSelectedRow()_

_event.source.parent.getComponent(‘PowerTable’).getTable().setRowHeight(rows,0)_

---

<div class="post-metadata">

**Author:** ![weertske](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/weertske/32/3353_2.png) [@weertske](https://forum.inductiveautomation.com/u/weertske)\
**Post date:** [June 22, 2017, 9:56pm UTC](https://forum.inductiveautomation.com/t/table-hide-a-row/14517/3 "2017-06-22T21:56:57Z")

</div>

Thank you, that is exactly what I needed.

---

<div class="post-metadata">

**Author:** ![Casu](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@Casu](https://forum.inductiveautomation.com/u/Casu)\
**Post date:** [April 11, 2022, 9:37pm UTC](https://forum.inductiveautomation.com/t/table-hide-a-row/14517/4 "2022-04-11T21:37:17Z")

</div>

Is there any intention of implementing a similar function into the tables in perspective?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [April 11, 2022, 9:46pm UTC](https://forum.inductiveautomation.com/t/table-hide-a-row/14517/5 "2022-04-11T21:46:38Z")

</div>

I think that’s a different topic and that you should start a new thread.  
When you’re doing that you should explain where the data is coming from and why the row can’t be deleted at source - either by SQL query or script transform.
