I need a bound column to only show 2 decimals and I have used a
DataFormatString
<asp:BoundField DataField="order_total_Total" HeaderText="£Total"
SortExpression="order_total_Total" DataFormatString="{0:f2}" />
This however, still displays 4 decimal points,
Does anyone have a clue what may be going wrong ?
Cheers
Mark Rae [MVP] - 30 Oct 2007 10:38 GMT
>I need a bound column to only show 2 decimals and I have used a
>DataFormatString
[quoted text clipped - 5 lines]
>
> Does anyone have a clue what may be going wrong ?
You've forgotten to include HtmlEncode="false"

Signature
Mark Rae
ASP.NET MVP
http://www.markrae.net