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
570
change column datatype
posted

Hello,

I have xamdatagrid bound to a dataTable . One of the columns is Decimal in the datatable but in the XamDataGrid i see it with $ sign. How can i fix it?

  • 27093
    posted

    Hello,

    I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.

    If the above suggestion helped you solve your issue please verify the thread as answered so other users may take better advantage of it.

  • 27093
    posted

    Hello ,

     

    I have been looking into your description and this is actually the expected behavior for decimal values since the XamDataGrid choses a XamCurrencyEditor for such values. What you can do is set the FieldSettings’s EditAsType for your specific Field like so:

     

    <igDP:FieldLayout>

        <igDP:FieldLayout.Fields>

            <igDP:Field Name="SalaryDecimal" >

                <igDP:Field.Settings>

                    <igDP:FieldSettings EditAsType="{x:Type sys:Double}" />

                </igDP:Field.Settings>

            </igDP:Field>

     

    Please let me know if you require any further assistance on the matter.