# Tableview: Resizable Columns with Labels

**URL:** <https://forum.servoy.com/t/tableview-resizable-columns-with-labels/13332>\
**Category:** Classic Servoy\
**Created:** [December 15, 2010, 9:06pm UTC](https://forum.servoy.com/t/tableview-resizable-columns-with-labels/13332 "2010-12-15T21:06:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kwpsd](https://avatars.discourse-cdn.com/v4/letter/k/bb73d2/32.png) [@kwpsd](https://forum.servoy.com/u/kwpsd)\
**Post date:** [December 15, 2010, 9:06pm UTC](https://forum.servoy.com/t/tableview-resizable-columns-with-labels/13332/1 "2010-12-15T21:06:44Z")

</div>

Version: 5.2.4 - build 1006

We use labels to display data in our tableviews to have access to the ‘onDoubleClick’ method (which fields do not have). We would like the user to be able to dynamically resize the label column widths, so we set all the label anchors to left + right as is required for resizable fields. However, the labels do not resize. When moving the cursor over adjoining label boundaries, the cursor changes to the combination left arrow-right arrow, but the labels will not expand or collapse.

Does setting the anchors to left + right only work for fields and not labels? Any suggestions on how to make this work?

Thanks!

---

<div class="post-metadata">

**Author:** ![mboegem](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/mboegem/32/4399_2.png) [@mboegem](https://forum.servoy.com/u/mboegem)\
**Post date:** [December 15, 2010, 9:44pm UTC](https://forum.servoy.com/t/tableview-resizable-columns-with-labels/13332/2 "2010-12-15T21:44:45Z")

</div>

did you set the horizontal scrollbar of the form to ‘never’?

---

<div class="post-metadata">

**Author:** ![kwpsd](https://avatars.discourse-cdn.com/v4/letter/k/bb73d2/32.png) [@kwpsd](https://forum.servoy.com/u/kwpsd)\
**Post date:** [December 15, 2010, 11:04pm UTC](https://forum.servoy.com/t/tableview-resizable-columns-with-labels/13332/3 "2010-12-15T23:04:05Z")

</div>

Thanks for the suggestion, Marc. I have two forms that are similarly named and was changing one and viewing the other. It turns out that setting the label anchors to left + right works, regardless of the horizontal scroll bar setting. Sorry for the mis-post!
