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.
Unfortunately, activation email could not send to your email. Please try again.

Currency format displayed incorrectly in Android

Thread ID:

Created:

Updated:

Platform:

Replies:

127893 Dec 15,2016 06:41 PM Dec 18,2016 10:35 PM Xamarin.Forms 1
loading
Tags: SfDataGrid
Ian Nájar
Asked On December 15, 2016 06:41 PM

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>

Ashok N [Syncfusion]
Replied On December 18, 2016 10:35 PM

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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;