Hello,
My requirement is to to set MaxIntegerLength to cell value. While in edit mode, it should allow only 7 digits(which is working fine), but once it is saved, it should be able to show more than 7 digits.
Currently if I edited all 12 cells in grid to seven 9's(9999999) last cell which shows Total has a CellValue becomes of 9 digits i.e. 119999988. My grid trims that value from left to show only 8 rightmost digit(19999988).
Is it because I masked Cell editor to accept only 7 digits?
I need to increase Max Integter Length of my cell. Please help.
Thanks & Regards,
Priya
I found the solution for this.
I just needed to use different styles for Mask and Format.
Hi,
Glad you found the solution. I’ll add the comments I was creating in case someone else may find them helpful.
Setting the Mask to double:-7.2, is limiting edit mode to 7 digits to the left of the decimal and 2 digits to the right. Your mask is limiting what can be input to a total of nine digits in edit mode. And the value that is saved will contain the same number of digits to the right and left of the decimal point.
When not in exit edit mode you would be showing the raw value rounded to 2 decimals. If you need to show more decimal digits you could add a Format property and use a Value that will allow more decimal digits to be visible, as in “###,###,###,###,###,###.#######”.
Here is some addition information which may be helpful to you.
This site shows the Default editors used for different data types for the XamDataGrid
http://help.infragistics.com/Help/Doc/WPF/2014.1/CLR4.0/html/xamData_Default_Editor_Types_for_Different_Data_Types.html
This is a site describing masks for the xamEditors
http://help.infragistics.com/doc/WPF/2014.1/CLR4.0/?page=xamEditors_Masks.html