user682417
user682417

Reputation: 1518

how do i format list view column to show currency symbol

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

Answers (3)

Amit Kumar Ojha
Amit Kumar Ojha

Reputation: 15

String.Format("{0:c}", CurrencyValue);

CurrencyValue is not defined error in vb.net

Upvotes: -1

Afnan Bashir
Afnan Bashir

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

Oleg Zhylin
Oleg Zhylin

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

Related Questions