We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Currency format displayed incorrectly in Android

In a DataGrid, in a GridTextColumn I'm trying to format the value in currency format. It works in WinRT, but in Android negative numbers are displayed with parenthesis:

Should show: $ -21901.23
But formats like this: (21901.23)

This is what I currently using:
<syncfusion:GridTextColumn HeaderText="SALES VS GOALS" Format="C"
                                   MappingName="sales_vs_goals" >

I also tried GridTemplates by setting CellTemplates using Labels to display, with same results.

<syncfusion:GridTemplateColumn HeaderText="SALES VS GOALS"
                                 MappingName="sales_vs_goals"  >
        <syncfusion:GridTemplateColumn.CellTemplate>
          <DataTemplate>
            <Grid>
              <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
              </Grid.ColumnDefinitions>
              <Label Text="{Binding sales_vs_goals}" Grid.Column="0" TextColor="Black"  XAlign="Center" YAlign="Center"></Label>
            </Grid>
          </DataTemplate>
        </syncfusion:GridTemplateColumn.CellTemplate>
      </syncfusion:GridTemplateColumn>

1 Reply

AN Ashok N Syncfusion Team December 19, 2016 03:35 AM UTC

Hi Ian, 

Thanks for contacting Syncfusion support. 

We have checked your query and Currency format will be display based on the Language region in our machine/Device. With your example you have language as US. Negative values will be displayed within the parentheses in US, this is US default business format for negative values. If you need to shows the negative values , you have change the language in your device. 

Regards, 
Ashok 


Loader.
Live Chat Icon For mobile
Up arrow icon