Formatting text in DataGrid

  • Thread starter Thread starter John Smith
  • Start date Start date
J

John Smith

In a DataGrid, is it possible to format the text in a BoundColumn,
either before or after the databind?


Thank you
 
Here's an example of formatting a bound column for an interest rate
field:

<asp:BoundColumn DataField="InterestRate" ReadOnly="True"
HeaderText="<b>Interest Rate</b>" DataFormatString="{0:##.000}%"
</asp:BoundColumn>

Good luck.

David Barkol
www.neudesic.com
 

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

Back
Top