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
Hello Rakesh,
Thank you for your feedback. I am glad that you resolved your issue and I believe that other community members may benefit from this as well.
Thanks again.
Hi Stefan,
Thanks for the sample, it worked for me.
Rakesh
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I added a string Property to my ViewModel, which I bound to the TextColumn’s FormatString Property.
Hope this helps you.
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.
Thanks
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