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

Custom of Datagrid Cell text string format

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" />


1 Reply

KK Karthikraja Kalaimani Syncfusion Team 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
 


Loader.
Live Chat Icon For mobile
Up arrow icon