I have a field which is in double type. This field represent a price so I want to push $ or € with the value. How can I do it??
That should resolve both problems.
Joe
<igDP:XamDataGrid Name="xamDataGrid1">
<igDP:XamDataGrid.FieldLayouts> <igDP:FieldLayout> <igDP:FieldLayout.Fields> <igDP:Field Name="MyDoubleField"> <igDP:Field.Settings> <igDP:FieldSettings EditorType="{x:Type igEditors:XamCurrencyEditor}"> <igDP:FieldSettings.EditorStyle> <Style TargetType="{x:Type igEditors:XamCurrencyEditor}"> <Setter Property="Mask" Value="$nnn,nnn.nn"/> </Style> </igDP:FieldSettings.EditorStyle> </igDP:FieldSettings> </igDP:Field.Settings> </igDP:Field> </igDP:FieldLayout.Fields> </igDP:FieldLayout> </igDP:XamDataGrid.FieldLayouts>
<igDP:XamDataGrid.FieldLayouts>
<igDP:FieldLayout> <igDP:FieldLayout.Fields> <igDP:Field Name="MyDoubleField"> <igDP:Field.Settings> <igDP:FieldSettings EditorType="{x:Type igEditors:XamCurrencyEditor}"> <igDP:FieldSettings.EditorStyle> <Style TargetType="{x:Type igEditors:XamCurrencyEditor}"> <Setter Property="Mask" Value="$nnn,nnn.nn"/> </Style> </igDP:FieldSettings.EditorStyle> </igDP:FieldSettings> </igDP:Field.Settings> </igDP:Field> </igDP:FieldLayout.Fields> </igDP:FieldLayout>
<igDP:FieldLayout>
<igDP:FieldLayout.Fields> <igDP:Field Name="MyDoubleField"> <igDP:Field.Settings> <igDP:FieldSettings EditorType="{x:Type igEditors:XamCurrencyEditor}"> <igDP:FieldSettings.EditorStyle> <Style TargetType="{x:Type igEditors:XamCurrencyEditor}"> <Setter Property="Mask" Value="$nnn,nnn.nn"/> </Style> </igDP:FieldSettings.EditorStyle> </igDP:FieldSettings> </igDP:Field.Settings> </igDP:Field> </igDP:FieldLayout.Fields>
<igDP:FieldLayout.Fields>
<igDP:Field Name="MyDoubleField"> <igDP:Field.Settings> <igDP:FieldSettings EditorType="{x:Type igEditors:XamCurrencyEditor}"> <igDP:FieldSettings.EditorStyle> <Style TargetType="{x:Type igEditors:XamCurrencyEditor}"> <Setter Property="Mask" Value="$nnn,nnn.nn"/> </Style> </igDP:FieldSettings.EditorStyle> </igDP:FieldSettings> </igDP:Field.Settings> </igDP:Field>
<igDP:Field Name="MyDoubleField">
<igDP:Field.Settings> <igDP:FieldSettings EditorType="{x:Type igEditors:XamCurrencyEditor}"> <igDP:FieldSettings.EditorStyle> <Style TargetType="{x:Type igEditors:XamCurrencyEditor}"> <Setter Property="Mask" Value="$nnn,nnn.nn"/> </Style> </igDP:FieldSettings.EditorStyle> </igDP:FieldSettings> </igDP:Field.Settings>
<igDP:Field.Settings>
<igDP:FieldSettings EditorType="{x:Type igEditors:XamCurrencyEditor}"> <igDP:FieldSettings.EditorStyle> <Style TargetType="{x:Type igEditors:XamCurrencyEditor}"> <Setter Property="Mask" Value="$nnn,nnn.nn"/> </Style> </igDP:FieldSettings.EditorStyle> </igDP:FieldSettings>
<igDP:FieldSettings EditorType="{x:Type igEditors:XamCurrencyEditor}">
<igDP:FieldSettings.EditorStyle> <Style TargetType="{x:Type igEditors:XamCurrencyEditor}"> <Setter Property="Mask" Value="$nnn,nnn.nn"/> </Style> </igDP:FieldSettings.EditorStyle>
<igDP:FieldSettings.EditorStyle>
<Style TargetType="{x:Type igEditors:XamCurrencyEditor}"> <Setter Property="Mask" Value="$nnn,nnn.nn"/> </Style>
<Style TargetType="{x:Type igEditors:XamCurrencyEditor}">
<Setter Property="Mask" Value="$nnn,nnn.nn"/>
</Style>
</igDP:FieldSettings.EditorStyle>
</igDP:FieldSettings>
</igDP:Field.Settings>
</igDP:Field>
</igDP:FieldLayout.Fields>
</igDP:FieldLayout>
</igDP:XamDataGrid.FieldLayouts>
</igDP:XamDataGrid>