Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
143
Incorrect columnorder
posted

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





 

 

 

Parents
No Data
Reply
  • 835
    Verified Answer
    posted

    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

Children