I have my ultra grid set as follows:
this.DisplayLayout.AutoFitStyle = AutoFitStyle.ResizeAllColumns;
This is good because it ensures that all the columns use up the space in my ultra grid.
However, when the user resizes a column in the ultra grid it is quite jarring because all of the columns resize as well. This leads to the column (the one that's being resized) to not even be resized to the position that the user indicated (sometimes it's truncated or elongated).
I would prefer the resizing method that the following line uses:
this.DisplayLayout.AutoFitStyle = AutoFitStyle.None;
The problem with this however is that the columns will not take up all the space in the Ultra Grid.
Is there some other method I can make use of that I am unaware of?
Thank you for your response. This solution does not seem to work. The col.performAutoResize doesn't appear to achieve any result. Whatever the AutoFitStyle I choose seems to override whatever performautoresize attempts. Or at least that's what the end result looks like...
you can use this
UltraGrid1.DisplayLayout.AutoFitStyle = AutoFitStyle.ExtendLastColumn
and it will extend the last column to fill the grid
and you can loop through the columns and make them perform auto resize (column.PerformAutoResize())