DataFormatString shows currency, but without commas

D

Don

Hi,

How do I get the commas into my datafield if it is a currency. I am dealing with hundred thousands, so it would really help out the user if I had commas.

Heres' what I am currently using in my BoundColumn: DataFormatString="${0:C}".

Do
 
R

Raghavendra T V

Hi Don,

You can try this.

<asp:BoundColumn DataField="ytd_sales" HeaderText="Sales"
DataFormatString="{0:#,###}"
ItemStyle-HorizontalAlign="Right"
ItemStyle-Width="15%" />

Thanks
Raghavendra


Hi,

How do I get the commas into my datafield if it is a currency. I am dealing with hundred thousands, so it would really help out the user if I had commas.

Heres' what I am currently using in my BoundColumn: DataFormatString="${0:C}".

Do
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,266
Messages
2,571,087
Members
48,773
Latest member
Kaybee

Latest Threads

Top