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
1330
Resizing columns is jarring for the user
posted

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?

Parents
No Data
Reply
  • 5520
    posted

    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())

Children