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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Custom of Datagrid Cell text string format

Thread ID:

Created:

Updated:

Platform:

Replies:

147937 Sep 28,2019 08:16 AM UTC Sep 30,2019 10:40 AM UTC Xamarin.Forms 1
loading
Tags: SfDataGrid
Mahmut Nedim
Asked On September 28, 2019 08:16 AM UTC

Hi,
I am using sfDatagrid. My code blog as follows. I set this format (#,##0.00). But for example, for a double result (ex:1234567.89) the android shows 1.234.567,89, the ios shows 1,234,567.89 result.
So the comma and dot are replacing. How can  i solve this problem

  <xforms:GridTextColumn HeaderText="Güncel Bakiye" 
                                                           HeaderTextAlignment="End" HeaderFontAttribute="Bold"
                                                           MappingName="GuncelBakiye" Format="#,##0.00" TextAlignment="End" />


Karthikraja Kalaimani [Syncfusion]
Replied On September 30, 2019 10:40 AM UTC

Hi Mahmut,

Thanks for contacting Syncfusion support,

Your requirement can achieve by using the Format property in “GridNumericColumn” in SfDataGrid. We have prepared the sample for the same. Please follow the below the code snippet and sample link.

 
[XAML]
<sfgrid:SfDataGrid x:Name="dataGrid" 
                               AutoGenerateColumns="false" 
                               ItemsSource="{Binding OrdersInfo}"> 
            <sfgrid:SfDataGrid.Columns> 
 
                <sfgrid:GridNumericColumn 
                                Format="#,##0.00" 
                                HeaderText="Product No" 
                                MappingName="OrderID" 
                                Width="100"/> 
            </sfgrid:SfDataGrid.Columns> 
</sfgrid:SfDataGrid> 
 
 
 
 


We hope this helps. Please let us know, if you need any further assistance.

 
Regards,
Karthik Raja
 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon