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
 
Back
Top