HI,
i am using xam datagird in my application, it is bounded to the collection having fields with datatype as double.the problem is that
the numeric fields in xam datagrid show truncated values , 2 places after decimal . i know this is xamdatagrid's default behaviour , but i want the whole value should be displayed to the field
i have used following code to fix a problem for single field
<igDP:Field Name="DoubleField">
<igDP:Field.Settings>
<igDP:FieldSettings>
<igDP:FieldSettings.EditorStyle>
<Style TargetType="{x:Type editors:XamCurrencyEditor}">
<Setter Property="Format" Value=".#########"/>
</Style>
</igDP:FieldSettings.EditorStyle>
</igDP:FieldSettings>
</igDP:Field.Settings>
</igDP:Field>
this works fine but as soon as i make it the style and place the code under the Xamdatagrid.Resources as style
so that all numeric fields should have same display style , its not working
<
igDP:XamDataGrid.Resources>
<Setter Property="Mask" Value=".nnnnnnnnn"/>
</Style> </igDP:XamDataGrid.Resources>
can anybody help where i am doing wrong.
Hello,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
Hello again,
Could you please send me an isolated sample project, where this issue is reproduced, so I can investigate this further for you.
Looking forward for your reply.
i have tried the xamnumeric editor instead of XamCurreny editor but still i have the same problem
Thank you for your post. I have been looking through it and I can say that the Double values are handled by a XamNumericEditor, not XamCurrencyEditor, and this is why you have such behavior, so I suggest you create a style for it instead. Please let me know if this helps you or you need further clarifications on this matter.