Hi Infragistics,
Currently our database is using float for currency value so when we applied into XamDataGrid, they appeared as XamNumericEditor instead of XamCurrencyEditor.
Is there any way to custom this by applying XamCurrencyEditor for all float value?
Thanks.
I tried to use this
<igDP:XamDataGrid.Resources> <Style TargetType="{x:Type igDP:Field}"> <Style.Triggers> <Trigger Property="DataType" Value="{x:Type sys:Double}"> <Setter Property="Settings"> <Setter.Value> <igDP:FieldSettings EditorType="{x:Type igEditors:XamCurrencyEditor}" EditAsType="{x:Type sys:Double}" /> </Setter.Value> </Setter> </Trigger> </Style.Triggers> </Style>
But it didn't work :(
You can do it in settings:
<ig:FieldSettings EditorType="{x:Type igEditors:XamCurrencyEditor}" EditAsType="{x:Type sys:Decimal}"/>