1

Topic: Ordering of columns in a grid

Hi

I've just changed the column heading "Sref" to "Grid Ref" in a grid on a form, using the Report Settings Columns Configuration. But the display position of this column has now shifted so that it is the leftmost column. How can I control the order of column display?

Alan

Alan Hale
Aberystwyth

2

Re: Ordering of columns in a grid

Hi Alan,
I may be wrong but the only way I found of changing one column heading was to define all the columns in the Report Settings Columns Configuration in the order I wanted. Otherwise I found the same as you - the one you change goes to the left most column.

I can post the configuration I used if you want so it might be a short cut for you.

Hope this helps,
Fiona

Fiona McCrory
CEDaR Website Officer
www.nmni.com/cedar

3 (edited by Alan Hale 13-03-2013 17:07:46)

Re: Ordering of columns in a grid

Ah - I think I get it. If you change the properties of a single column that's going to go in a column 0 in the column configuration. If you want to place it elsewhere you're going to have to add in other columns to "pad" even if you don't need to change any of the properties of those columns.

Might be simpler to just edit the original report xml and save it as a new custom report.

Cheers

Alan

[Thanks Fiona - I saw your post after I posted my follow-up. Looks like we've reached the same conclusion :) ]

Alan Hale
Aberystwyth

4

Re: Ordering of columns in a grid

Hi all
Your findings are correct - as soon as you edit a column, it's position get's moved. In effect, the columns in the grid are the ones you explicitly define in order, followed by any that the report defines which you omitted. I'd appreciate any suggested improvements to the code here though if anyone gets a chance to look.
Best wishes
John

John van Breda
Biodiverse IT