# Power Table Auto Size Columns

**URL:** <https://forum.inductiveautomation.com/t/power-table-auto-size-columns/9639>\
**Category:** Ignition\
**Created:** [February 2, 2015, 6:21pm UTC](https://forum.inductiveautomation.com/t/power-table-auto-size-columns/9639 "2015-02-02T18:21:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [February 2, 2015, 6:21pm UTC](https://forum.inductiveautomation.com/t/power-table-auto-size-columns/9639/1 "2015-02-02T18:21:41Z")

</div>

on the power table is there a scripting function to auto size columns?

I see i can manually auto size the columns in the client by right clicking the header, but i want the tables columns to auto size after the window opens.

Thank you,

---

<div class="post-metadata">

**Author:** ![glogue](https://avatars.discourse-cdn.com/v4/letter/g/9fc348/32.png) [@glogue](https://forum.inductiveautomation.com/u/glogue)\
**Post date:** [March 25, 2015, 8:03pm UTC](https://forum.inductiveautomation.com/t/power-table-auto-size-columns/9639/2 "2015-03-25T20:03:36Z")

</div>

Jonathan,

1. Open the Designer for the project that has your Power Table component
2. Go to the Property Editor for the Power Table component
3. Under Behavior, set the Auto-Resize Mode to All Columns
4. Save your project to the gateway

Or… you can use the ‘initialize’ method on the powerTable.

powerTable.autoResizeMode = 4

This will set to auto resize on each initialization of the table. It is overkill if you set the property to begin with.
