# Save column size in Power Table

**URL:** <https://forum.inductiveautomation.com/t/save-column-size-in-power-table/31540>\
**Category:** Ignition\
**Tags:** ignition80, scripting\
**Created:** [January 23, 2020, 5:12am UTC](https://forum.inductiveautomation.com/t/save-column-size-in-power-table/31540 "2020-01-23T05:12:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergei\_Kitov](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@Sergei\_Kitov](https://forum.inductiveautomation.com/u/Sergei_Kitov)\
**Post date:** [January 23, 2020, 5:12am UTC](https://forum.inductiveautomation.com/t/save-column-size-in-power-table/31540/1 "2020-01-23T05:12:56Z")

</div>

Hello, I am interested in the features provided by the power table. I want to learn how to change the size of the table window without changing the size of the columns. Now I have a script:

```auto
  table = self.viewDataset
			
 	c = table.getColumnCount()
 			
 	if c<=7: system.gui.transform(self, newWidth=800)
 	elif c>7: system.gui.transform(self, newWidth=1400)

```

With it, I get:  
for 10 columns

 ![Screen](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/50ecb7165befc8fa7a9dcd68c455a9ec03bb798f.png)  
for 7 columns  
 ![Screen2](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/6d21ce3d0e71944ee60b663048a18c306827f85f.png)  
Q: how do I save the original column size

Thanks

---

<div class="post-metadata">

**Author:** ![martinel3746](https://avatars.discourse-cdn.com/v4/letter/m/e0b2c6/32.png) [@martinel3746](https://forum.inductiveautomation.com/u/martinel3746)\
**Post date:** [January 23, 2020, 6:07pm UTC](https://forum.inductiveautomation.com/t/save-column-size-in-power-table/31540/2 "2020-01-23T18:07:21Z")

</div>

Have you tried changing the “Auto-Resize Mode” to “Off”?  
I’m not sure if you’re working with 8.0.x or 7.9.x but turning Auto-Resize Mode Off works for me in v7.9.x.

---

<div class="post-metadata">

**Author:** ![Sergei\_Kitov](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@Sergei\_Kitov](https://forum.inductiveautomation.com/u/Sergei_Kitov)\
**Post date:** [January 24, 2020, 4:43am UTC](https://forum.inductiveautomation.com/t/save-column-size-in-power-table/31540/3 "2020-01-24T04:43:18Z")

</div>

It worked! Thank you very much!

 ![Screen](https://us1.discourse-cdn.com/inductiveautomation/original/2X/5/5888e01eddb0039ef0a38b9e6a44b72f4f8c28e6.png)
