How can I format a number column in a datagrid

A

Arne

I tried
<asp:BoundColumn DataField="Logins" HeaderText="Logins"
DataFormatString="{#,##.0}"></asp:BoundColumn>

But it blows up.
Is there a better way.
 
A

Arne

Eliyahu,
I had read the two above help files prior to posting my news item. After
having read you first post a second time I came up with
<asp:BoundColumn ItemStyle-HorizontalAlign="Right" DataField="Logins"
HeaderText="Logins" DataFormatString="{0:N0}"></asp:BoundColumn>
Arne
 

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

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top