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
345
Decimal value to be shown with %
posted

Hi

  I have two decimal columns in xamdatagrid out of which one i need to show with $ and another with %.

  please suggest me with some solutions.

Regards

Rathna

  • 35319
    posted

    Hello Rathna,

     

    I am just checking if you require any further assistance on the matter.

  • 35319
    posted

    Hello Rathna,

    Thank you for your post. I can suggest you create a style for XamCurrencyEditor like e.g. :

       <Style x:Key="editorStyle" TargetType="{x:Type Editors:XamCurrencyEditor}">

                <Setter Property="Mask" Value="%{double:5.2:c}"/>

            </Style>

    and set it to the desired field like e.g. :

                          <igDP:Field Name="Mileage">

                                <igDP:Field.Settings>

                                    <igDP:FieldSettings EditAsType="{x:Type sys:Decimal}" EditorStyle="{StaticResource editorStyle}"/>

                                </igDP:Field.Settings>

                            </igDP:Field>

    Let me know, if you need any further assistance on this matter.