I'm new to XAML and I'm trying to convert a decimal value in the following format :
convert 45000 to 45 000.00
What is the correct format string?
So far I'm able to convert the value to currency but I don't want to show the $ sign
TextColumn Key="Amount" FormatString="{}{0:C}"
<infragistics:TextColumn Key="num3" FormatString="{}{0: ### ### ###.00}"></infragistics:TextColumn>
It works!!!
Thanks
Thanks for the response. Works like a champ. Is there somewhere you can point to that has information on the syntax of FormatString. I need to formats dates as well.
The format string is just the standard .Net / Silverlight format strings.
For datetime:
http://msdn.microsoft.com/en-us/library/system.globalization.datetimeformatinfo(VS.95).aspx
Hi Darell,
Does binding works for FormatString?
Because i have a requirement to have different types of format string to be applied to the Textcolumn depending on some conditions.
For eg: It can be 10.1,10.10,10.100,10.1000
Can you please help, because i tried and binding is not working but hard coded format string does work.
Rakesh