# Freeze table column

**URL:** <https://forum.inductiveautomation.com/t/freeze-table-column/1621>\
**Category:** Archived Topics\
**Created:** [March 10, 2010, 6:10pm UTC](https://forum.inductiveautomation.com/t/freeze-table-column/1621 "2010-03-10T18:10:22Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![JGJohnson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jgjohnson/32/29582_2.png) [@JGJohnson](https://forum.inductiveautomation.com/u/JGJohnson)\
**Post date:** [May 27, 2016, 1:02pm UTC](https://forum.inductiveautomation.com/t/freeze-table-column/1621/10 "2016-05-27T13:02:10Z")

</div>

[quote=“DougSN”]

I ended up using a timer for this because I couldn’t figure out a way to trigger on the event of the scroll position changing. If I had that trigger/event, it would have been a lot cleaner, I think.[/quote]

In my case the same scroll bar is scrolling both tables because I set the second table to use the same Column Model as the first.

Try this:

```auto
singleColumnTable.table.setColumnModel(mainTable.table.getColumnModel())
```

EDIT: This works for horizontal scroll bars and column widths but does not work for vertical scroll bars. Nevermind.

---

_[View the full topic](https://forum.inductiveautomation.com/t/freeze-table-column/1621)._
