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.
Yes, you can use the static RegisterDefaultEditorForType method - e.g. ValueEditor.RegisterDefaultEditorForType(typeof(float), typeof(XamCurrencyEditor), true);
Thanks it works but not sure why it didn't apply style of XamCurrencyEditor, it just use style of XamNumericEditor(i guess so).
I have to set this:
<igDP:XamDataGrid.Resources> <Style TargetType="{x:Type igEditors:XamCurrencyEditor}"> <Setter Property="FontWeight" Value="SemiBold" /> <Setter Property="Format" Value="$ #,###.00" /> </Style> </igDP:XamDataGrid.Resources>
to make it works like a XamCurrencyEditor but currently, i got a lot of views with XamDataGrid that need to apply this style
Is there anyway to apply this Style for all XamDataGrid, i try to put this style on ResourceDictionary but i can set Setter to Resources property
<Style TargetType="{x:Type igDP:XamDataGrid}"> <Setter Property="Resources"> </Setter>
Please help me.