App crashes when I set CultureInfo property in GridColumn tag using XAML

Hello there,

I´m using Syncfusion´s SfDataGrid control in a small Xamarin Forms app. I need to display currency data in the 3rd column and I would like to display it with my local currency symbol: Brazilian Real (R$). Here is the XAML for the datagrid:

<syncfusion:SfDataGrid
                x:Name="gridSF"
                ColumnSizer="Star"
                AutoGenerateColumns="False"
                AllowSorting="True"
                VerticalOptions="FillAndExpand"
                BackgroundColor="MistyRose"
                >
               
                <syncfusion:SfDataGrid.Columns x:TypeArguments="syncfusion:Columns">
                    <syncfusion:GridTextColumn
                        HeaderText="Description"
                        TextAlignment="Start" 
                        CellTextSize="32"
                        HeaderCellTextSize="32"
                        MappingName="Nome" />

                    <syncfusion:GridTextColumn
                        HeaderText="Professional"
                        MappingName="Professional"
                        TextAlignment="Center"
                        CellTextSize="32"
                        HeaderCellTextSize="32" />

                    <syncfusion:GridTextColumn
                        HeaderText="Price"
                        MappingName="Price"
                        TextAlignment="End"
                        CellTextSize="32"
                        HeaderCellTextSize="32"
                        Format="C"
                        CultureInfo="pt-BR"
                        />
                   
                </syncfusion:SfDataGrid.Columns>
            </syncfusion:SfDataGrid>

When I add the CultureInfo="pt-BR" my app is not compiled and Visual Studio displays an uncaught exception message. Could anyone help me to solve this? Thanks in advance.

Joao Paulo


1 Reply

AN Ashok N Syncfusion Team November 13, 2017 12:49 PM UTC

Hi Joao Paulo, 
 
Thanks for contacting Syncfusion support. 
 
We have checked the reported CultureInfo not working issue and we are able to reproduce in our side with latest assemblies. Currently we are checking on this issue, meantime we request you to use by changing culture information in your device. We will update you further details after fix this issue. 
 
Regards, 
Ashok   


Loader.
Up arrow icon