Geeks With Blogs

BizTalk Blog by Chris Han System Design for Enterprise Agility,
September 2008 Entries
Data Formatting for DataTextFormatString field
I was trying format my dropdown list to should the decimal numbers as pecentange. But the MSDN article is not completed. It turned out that {0:P2} is what I'm looking for. Here is the full list regarding the string format: Data Formatting for DataTextFormatString Format String Description {0:Cn} Currency. Displays numeric values in currency format with a leading dollar sign; n indicates the number of decimal places. If n is omitted, the default currency precision is two decimal digits. {0:Dn} Decimal. ......

Posted On Sunday, September 7, 2008 3:41 PM

Copyright © Chris Han | Powered by: