I have a ListView on one of the windows project using c#. One of the columns contains currency values. How do I format the List View so that this column presents the "£" sign (for Pounds Sterling)?
String.Format("{0:c}", CurrencyValue);
is supposed to do the trick if you just want currency symbol for the locale of your application. If you're working with multiple currrencies your control of choice has to support Unicode.
you would have to do some thing like giving UTF-16 (hex)
code of this symbol and do something like this no need to modify it
listView1.Items.Add(((char)0x00A3).ToString());
works for me ........hope it helps
You may want to look at This
String.Format("{0:c}", CurrencyValue);
vb.net中未定义CurrencyValue错误
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.