I have an editable field with XamNumericEditor, width is Auto and mask is rather long, about 17 digits., something like ###,###,###,###,#00.00. When a value is small enough to fit in a cell, all is okay. When I click in the cell, the whole column resizes to accommodate the whole mask. But When a number in a cell is big, the cell does not resize when the grid is displayed, higher digits are cut off and when I click in a cell, it does not resize, just scrolls the mask to the left and displays the last two digits on the left side of the cell and most of the cell is empty. I reckon the field needs resizing to make the whole number fit in, but still have an auto width. I tried calling PerformAutoSize on the problematic field, but it did not help. Anybody has an idea what to do? Thanks.
Ivan
Hello Ivan,
Thank you for your post. I have been looking into it and I can suggest you set the Field’s Width to Auto, so the cells could be resized automatically. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Hi Stefan,
Thanks for your response. That's what I have done already and it works perfectly if the number in the cell fits. Try this: set mask/format to ###,###,###,###,##0.00, set the value for the cell in the second row in the viewmodel to let's say 123,123,123,123,123.23, set the label of the field to something short. What happens in my case is that the column is too narrow to display the whole number and it does not resize the column if I click into this cell to edit the number. It does resize it if I click in the same column where the whole number fits, let's say it has 0.00 in it in the first row. And then the column resizes and I see that big number complete as well and I can edit it as expected. To me it looks like the grid tries to get some default width, but it's not good enough and then it cannot fit the number in, which confuses the resizing logic.