Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
490
XAMdatagrid how to provide style to the numeric fields
posted

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>

 

 

 

 

<Style TargetType="{x:Type editors:XamCurrencyEditor}">

<Setter Property="Mask" Value=".nnnnnnnnn"/>

</Style> </igDP:XamDataGrid.Resources>

can anybody help where i am doing wrong.