# Table view columns in wrong order

**URL:** <https://forum.servoy.com/t/table-view-columns-in-wrong-order/18087>\
**Category:** Classic Servoy\
**Created:** [July 27, 2014, 9:49pm UTC](https://forum.servoy.com/t/table-view-columns-in-wrong-order/18087 "2014-07-27T21:49:09Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![steve1376656734](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/steve1376656734/32/4613_2.png) [@steve1376656734](https://forum.servoy.com/u/steve1376656734)\
**Post date:** [July 27, 2014, 9:49pm UTC](https://forum.servoy.com/t/table-view-columns-in-wrong-order/18087/1 "2014-07-27T21:49:09Z")

</div>

Hi,

I have a table view defined with 3 columns. When I run the client (both web and smart client) the columns are in a different order to that shown in the designer. I have not previously re-ordered the columns in the client and if I now drag/drop the columns into the correct order as soon as I modify the form and save it in the designer the columns revert to the incorrect order.

Designer:  
[attachment=1]designer.png[/attachment]

Client:  
[attachment=0]Client.png[/attachment]

It seems that nothing I do can make the columns stay in the correct order.

Any help would be appreciated.

Thanks  
Steve

 ![Client.png](https://canada1.discourse-cdn.com/flex010/uploads/servoy/original/2X/f/f53336ae37e9fa9b55150ff199b80dac79d12fcb.png)

![designer.png](https://canada1.discourse-cdn.com/flex010/uploads/servoy/original/2X/8/81e9a08e648ca1a4c4611c124343b78fb0ac4384.png)

---

<div class="post-metadata">

**Author:** ![ptalbot](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/ptalbot/32/4952_2.png) [@ptalbot](https://forum.servoy.com/u/ptalbot)\
**Post date:** [July 27, 2014, 10:14pm UTC](https://forum.servoy.com/t/table-view-columns-in-wrong-order/18087/2 "2014-07-27T22:14:06Z")

</div>

You should check the labelFor property of the labels and make sure they match the fields they are supposed to.

---

<div class="post-metadata">

**Author:** ![steve1376656734](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/steve1376656734/32/4613_2.png) [@steve1376656734](https://forum.servoy.com/u/steve1376656734)\
**Post date:** [July 27, 2014, 11:34pm UTC](https://forum.servoy.com/t/table-view-columns-in-wrong-order/18087/3 "2014-07-27T23:34:19Z")

</div>

Hi Patrick,

Thanks for the suggestion but all labels have the correct labelFor property - I just can’t figure it out at all. I thought I may have found the issue when I saw that the Full Name and Case Category fields were anchored Top, Left and Right (to allow them to be resized) and I had forgotten to set the Horizontal scrollbars to Never but it only seemed to work briefly and then the fields reverted to the incorrect order again ![:cry:]( "Crying or Very sad").

Any other suggestions gratefully received.

Thanks  
Steve

---

<div class="post-metadata">

**Author:** ![ptalbot](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/ptalbot/32/4952_2.png) [@ptalbot](https://forum.servoy.com/u/ptalbot)\
**Post date:** [July 28, 2014, 2:13am UTC](https://forum.servoy.com/t/table-view-columns-in-wrong-order/18087/4 "2014-07-28T02:13:06Z")

</div>

Something wrong with the tab order perhaps?  
Do you modify that form with the solutionModel?

---

<div class="post-metadata">

**Author:** ![steve1376656734](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/steve1376656734/32/4613_2.png) [@steve1376656734](https://forum.servoy.com/u/steve1376656734)\
**Post date:** [July 28, 2014, 12:06pm UTC](https://forum.servoy.com/t/table-view-columns-in-wrong-order/18087/5 "2014-07-28T12:06:15Z")

</div>

Hi Patrick,

Again another great suggestion but I have checked out the tab order and all looks good and I don’t do anything with the solutionModel in my application (yet!). I just can’t work out what is happening but one other thing I didn’t mention as I’m not sure if it is relevant is that I am using the Servoy framework for my application. I have tried creating other tableview forms and this is the only one that goes wrong.

Thanks  
Steve

---

<div class="post-metadata">

**Author:** ![ptalbot](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/ptalbot/32/4952_2.png) [@ptalbot](https://forum.servoy.com/u/ptalbot)\
**Post date:** [July 28, 2014, 12:26pm UTC](https://forum.servoy.com/t/table-view-columns-in-wrong-order/18087/6 "2014-07-28T12:26:40Z")

</div>

Oh well, I suppose the framework is using the solutionModel itself… Anyway, best make a case in Servoy support about it.

---

<div class="post-metadata">

**Author:** ![steve1376656734](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/steve1376656734/32/4613_2.png) [@steve1376656734](https://forum.servoy.com/u/steve1376656734)\
**Post date:** [July 28, 2014, 12:30pm UTC](https://forum.servoy.com/t/table-view-columns-in-wrong-order/18087/7 "2014-07-28T12:30:44Z")

</div>

Thanks Patrick - will do
