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
160
method CalculateAutoResizeWidth not work
posted

In the ultraWinGrid i call methods CalculateAutoResizeWidth(PerformAutoSizeType.AllRowsInBand, False) for each column, but it doesn't perform any action, while calling method PerformAutoResize(PerformAutoSizeType.AllRowsInBand)  at the same point in the code, it works.

The problem is that i'd like not consider the width of the header capition for the autosize, and I thought that CalculateAutoResizeWidth was the right method to having this.

Any ideas? Thanks

Riccardo

Parents
  • 69832
    Suggested Answer
    Offline posted

    CalculateAutoResizeWidth returns the width, but it doesn't change it. UltraGrid does not seem to provide a publicly exposed way to control whether the header width is included in the resize; you could probably do something like handle MouseDoubleClick, hit test for a column header (and also whether the mouse is in the adjustable area of the header element), then manually set the column's width to the value returned from the CalculateAutoResizeWidth method.

Reply Children
No Data