Hi!
Mabye someone can help me with the following problem.
I load a data set into my grid. Then i change the order of the colums by drag&drop. When it was A-B in beginning, its now B-A. But with this.ultraGrid1.DisplayLayout.Bands[0].Columns i still get the columns in that order they were defined in the data set. Is there a possibility to get the columns in the order they are displayed on the grid?
Hi,
take a look to Columns[0].Header.VisiblePosition. I think this will help you.
Kind regards,
Ralf
This collection will give you the colum headers in the visible order:
this.ultraGrid1.ActiveColScrollRegion.VisibleHeaders
You could also use GetFirstVisibleCol on the band and GetRelatedVisibleColumn on the column to loop through the columns in order.
I'd like to know why VisiblePosition property becomes 0 of the first fixed column and if this is a bug.
Thanks,
Because the fixed column moves to position 0 when you fix it. No, it's not a bug.