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
1210
Issue with PerformAutoResizeColumns for string columns with input mask and an empty cell value
posted

Hello,

I'm noticing inconsistency when auto-sizing columns. I'm auto-sizing this way:

grdIG.DisplayLayout.PerformAutoResizeColumns(False, UltraWinGrid.PerformAutoSizeType.AllRowsInBand, UltraWinGrid.AutoResizeColumnWidthOptions.All)

This works as expected, except for string columns that have input mask. If one cell contains empty string value and, as an example, the input mask is "a", then the column will be wider than expected.

I have attached an image that shows the same column, first with an input mask of "a" and then with no input mask. Both captures are after calling PerformAutoResize. The column width is roughly doubled for the instance where it uses input mask (about 50px vs 25px). 

Is this a known bug?

Thanks,

Trausti