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