<asp:BoundColumn ...... DataFormatString="{0:f2}"/>
TemplateColumn
<asp:TemplateColumn>
<ItemTemplate>
<asp:Label Text='<%# String.Format("{0:f2}", DataBinder.Eval(Container.DataItem,"testfield") %>' ...../>
</ItemTemplate>
</asp:TemplateColumn>
1 ==> $1.00
No comments:
Post a Comment