Reputation: 95
I need to ask follow up question from this thread This thread
how to change the currency to other format, ie. in my case using Indonesian Rupiah (IDR)
Upvotes: 1
Views: 583
Reputation: 95
I finally found the solutions and I went with this way.
<sdk:DataGridTextColumn x:Name="unitPriceColumn" Binding="{Binding UnitPrice, StringFormat=C, ConverterCulture=id-ID}" Header="Unit Price" Width="SizeToHeader"/>
You can also set the current culture to the current thread
Upvotes: 0
Reputation: 1141
To display currency you need basically two things:
Upvotes: 0
Reputation: 23280
You'll need to go with setting your CultureInfo or if it's for single instance you can just apply it via a StringFormat
like;
Binding="{Binding Blah, StringFormat='Rp\{0\}'}"
Upvotes: 1