With the product I was using before re-ordering & re-sizing columns at runtime was automatic.
Do you call grid.AutoSizeColumns() after activating the dataset?
I missed the options property. Really easy. Sorry I thought I had looked at everything.
So a follow up. I can now resize and move columns.
grid.ColumnStatesToString / grid.StringToColumnStates can do this. It persists column width, order & visibility.
Can i do this without persistent columns? I hate to design the complete grid, but want to allow the user to change (and save) the columns with order and with.
Do you call grid.SetColumnOrder at the right-time? grid.SetColumnOrder should be called when your reference column setting is setup in the grid (as deviations to this reference order are stored in the column states, so, before column states can be properly persisted, it is important than the reference order is set correct.
No i did not. But now i call it once before the eventuality that user changes columns (which will cause the settings to go into the database, and this works... Thanks.