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

Forum statistics

Threads
474,266
Messages
2,571,081
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top