Hi,
I have a domainobject databinded with a ultrawingrid via a System.Windows.Forms.BindingSource.My problem is that some of the gridcolumns turns out in wrong order.These are added dynamicly by overriding the GetItemProperties method in the bindingsource.
All columns are correctly ordered if I debug my application at "Infragistics.Win.UltraWinGrid.InitializeLayout"and iterate each Grid.DisplayLayout.Bands(0).Columns.Key.But the columns are incorrectly ordered when the data finally are showed in the grid.Is there any event or something that occurs after the UltraWinGrid.InitializeLayout event that can be the reason for the incorrect columnorder?
I am a bit lost ://S
Have you created a display layout for the gird? If so then you can set the column visible order at desing time under the column property in Column.Header.VisiblePosition. If you don't then take a look at the Grid.DisplayLayout.Bands(0).Columns[0].Header.VisiblePosition.
Hope this helps.
Jose
Thnx for the help!Grid.DisplayLayout.Bands(0).Columns[i].Header.VisiblePosition showed me the "incorrect" order and I corrected it by iterating the column collection and change the VisiblePosition.
/S