Hi,
I am using the XamDataGrid and am seeing something slightly odd when displaying doubles.
Any number over 100,000,000 is truncated and the commas are not put in. For eg:
1,000,000,000.00 is displayed as: 1000,000,000.00
-1,000,000,000.00 is displayed as: 1000,000,000.00
I do not want to have to change each field in the XAML individually. Is there a way of changing this in one place and it filtering down to all fields?
Thanks,
Alastair
Hello Nolan,
Thank you for your post. I was wondering whether this issue with the integer field appears when you set the style :
<Style TargetType="igEditors:XamNumericEditor">
<Setter Property="Mask" Value="{}{double:-13.2:c}" />
</Style>
If so I can suggest you set the style only for the specific field that you want to apply it, not for the whole grid. For more information I can suggest you look into the following link from our online documentation :
http://help.infragistics.com/NetAdvantage/WPF/2012.2/CLR4.0/?page=xamDataPresenter_Embedding_a_xamEditor_in_a_Field.html
If you need any further assistance on this matter, feel free to ask.
I was having the same problem as burgessage, and your solution fixed it (thank you!). However, I now have another field that is an integer that now displays as a float- i.e. 1.00 and 5.00 intead of 1 and 5. Is there any way to selectively apply this fix to fields that are float numerics, rather than all numerics?
Hello burgessage,
I am just checking if my last reply was helpful for you.
If you require any further assistance please do not hesitate to ask.
I have been looking into your post and I can suggest you create a Style for the XamNumericEditor like this :
This way you can define the scope of the digits in each Field in the XamDataGrid that uses XamNumericEditor.
If you have any other question on this matter, feel free to ask.