When number is big, the comma (,) is lost. for example, 3983,256,580.22 istead of 3,983,256,580.22
I am binding the query result to the xmlDataGrid directlty.Thanks!Steve
I'm not sure why you're seeing a performance hit since essentially that code would modify the default style. That being said you can change the default mask used for a type using the static RegisterDefaultMaskForType method:
Hi Vlad,
I figured out by using XamNumericEditor.But this leads to performance issues, it is slower than default setting.Thank!Steve
Vlad,
It does not work. I guess the dataGrid does not know it is a currency field.
How to set it for all numeric fields?
Thanks!
Steve
Hi Steve,
In this case you need to create a default style for XamCurrencyEditor without specify x:key of the Style. This way you will provide a default style for all the XamCurrency editors in the grid.
This is an example how can you do this in Xaml :
<igDP:XamDataGrid.Resources> <Style TargetType="{x:Type igEditors:XamCurrencyEditor}"> <Setter Property="Mask" Value="{}{currency:10.2:c}" /> </Style></igDP:XamDataGrid.Resources>
Of course you can set the style in Code behind as well.
Regards
Vlad
I am binding the result set automatically, so no indiviual field specified in xaml. How can I set the mask for all XmlDataGrid?
Thabks!Steve