Reputation: 1518
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)?
Upvotes: 2
Views: 3449
Reputation: 15
String.Format("{0:c}", CurrencyValue);
CurrencyValue is not defined error in vb.net
Upvotes: -1
Reputation: 7419
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
Upvotes: 0
Reputation: 1310
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.
Upvotes: 5