Hi there.. Into a xamDataGrid I want to see a decimal value like "11.111,1234", but:
1) if i put the EditAsType "Decimal", appairs the "€ 11.111,12" value;(if the starting value is "11.111,1289", it rounds to "€ 11.111,13");2) if i put the EditAsType "Double", appairs the "11.111,12" value:(if the starting value is "11.111,1289", it rounds to "11.111,13");3) if i put the EditAsType "String", appairs the "11111,12" value:(There isn't any separator of thousands and if I want to calculate this column i must first convert the value).
How can I visualize the correct value (with 4 decimal places)?
Thanks.
Hello,
By default, the xamDataGrid uses the Infragistics xamCurrencyEditor for decimal columns. You can create a Style targeting type xamCurrencyEditor to be applied via the EditorStyle property of the Field's Settings object.
In that Style, you can set the Mask property of the xamCurencyEditor. For more information on using Masks, please visit this documentation. For a code sample of setting the Style, please see this sample in the online documentation.
The links provided in your documentation are broken and result in this:
Server Error in '/' Application. Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: An error occurred loading a configuration file: Directory 'E:\websites\help.infragistics.com\Help\netadvantage\wpf\2008.2' does not exist. Failed to start monitoring file changes.Source Error: [No relevant source lines] Source File: E:\websites\help.infragistics.com\Help\netadvantage\wpf\2008.2\web.config Line: 0 Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
[No relevant source lines]
The post is 3 years old and references the help available at the time. Changing the url such that it references 2011.2 instead of 2008.2 and CLR4.0 instead of CLR3.X should fix it. e.g.
http://help.infragistics.com/Help/NetAdvantage/WPF/2011.2/CLR4.0/html/xamCurrencyEditor_Using_xamCurrencyEditor_as_a_Field_in_xamDataGrid.html
http://help.infragistics.com/Help/NetAdvantage/WPF/2011.2/CLR4.0/html/xamEditors_Masks.html
Thanks for fixing these broken links.