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
60
Apply XamCurrencyEditor for float value as a Style to apply for entire project
posted

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.

Parents
No Data
Reply
  • 60
    posted

    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 :(

Children