I have this simple piece of code and I am wondering how to convert it to German format (#.###,##) ?
// displays #.##
<DataGridTextColumn Header="Sum Value" Binding="{Binding SumValue}"/>
I have this simple piece of code and I am wondering how to convert it to German format (#.###,##) ?
// displays #.##
<DataGridTextColumn Header="Sum Value" Binding="{Binding SumValue}"/>
In this case try several options:
Add
Startup
event forApp.xaml
, which establishes the necessary language culture. It affects the display of the date, double values, sums of money, etc:XAML
Code-behind
In this case you can set any
Control
to display values in the DataGridCell: