How can you reorder columns via scripting?
None
The possibilities/examples are:
Option 1:
...
Attributes.InitSort();
//now set ordinal values as you wish
var temp = Attr1.Ordinal;
Attr1.Ordinal = Attr2.Ordinal;
Attr2.Ordinal = temp;
Attributes.Sort(); //It orders list according to the set ordinal values of individual items
...
Option 2:
...
Attributes.Move(2,0) //The first parameter is the Current index in the list and the second is the index where the item should be moved to
...
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center