I am not sure with the behavior of the UltraGrid with respect Mask Input for Column. Let me try putting my concern.
I have a numeric column let say with width as 70 (which can completely display 10 digit numbers). The Mask Input for the column is {double: 12.0}. If I reduce the column width to 50 and have a numeric cell value as 9999 the complete number is displayed in the cell. But if I change the Mask Input to {double: 28.0} the same numeric value (9999) on the cell is displayed as 9…. I think there is an issue with the display and would request for your assistance.
Thanks and Regards,
Ritesh
Hello Ritesh,
I tried your scenario and it works fine for me. Could you please let me know of your exact version, so I could test the project with it? Also, I think that this behavior might be coming from other settings, so I will not mind if I could take a look of a small sample project of your own which reproduces this issue.
In the meantime, please take a look at the attached sample to this post.
Please feel free to let me know if I misunderstood you or if you have any other questions.
Thanks Boris for your response.
I think I did not give you the complete details for my concern. I set the below property of the UltraGridColumn in the sample example that you have send across and I am able to replicate the issue.
ultraGridColumn1.MaskDataMode = Infragistics.Win.UltraWinMaskedEdit.MaskMode.IncludeLiterals;
ultraGridColumn1.MaskDisplayMode = Infragistics.Win.UltraWinMaskedEdit.MaskMode.IncludeBoth;
ultraGridColumn1.MaskInput ="{double:-28.0}";
Even though the cell value is 9999, I could see .... in the cell if the MaskInput is {double:-28.0}. But if the Mask Input is {double:-15.0}; I am able to see the values in the cell as 9999
I have attached the sample project that you have send across with the code changes in the designer.
Thanks for your assistance.
Hello,
I believe that this is an expected behavior since you are setting the 'MaskDisplayMode' of the column to 'IncludeBoth'. This means that the cell will try to display the prompt characters, which on the other hand will try to take all the available space, pushing the actual value to the very right section of the cell.
I hope that this explains the issue you are having.
Please feel free to let me know if a question about our toolset comes up on your mind.
I am checking about the progress of this issue. Please let me know If you need any further assistance on this.