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
50
UltraGrid PerformAutoResize Inconsistent 'Non-smart' Resizing
posted

We're currently having issues getting a grid to format columns correctly.

Given a dataset loaded into an UltraGrid, executing the line

"anUltraGrid.DisplayLayout.PerformAutoResizeColumns(false, PerformAutoSizeType.VisibleRows, true);"

doesn't work as expected. Header AND Cell data is cutoff or made too short, causing wrapping. We KNOW it's possible to fit all column and header text without anything getting cut off because we accomplish it manually resizing the columns ourselves.

Here's an example of how it looks AFTER running the autoResize, a grid we can fix manually:

/community/resized-image/__size/320x240/__key/communityserver-discussions-components-files/1040/ForInfragisticsBadAutosizeExample.png

Control Settings:

/community/resized-image/__size/320x240/__key/communityserver-discussions-components-files/1040/ForInfragisticsBadAutosizeControlSettings.png