1:
<asp:TemplateColumn HeaderText="货品总额">
<HeaderStyle HorizontalAlign="Left"></HeaderStyle>
<ItemStyle HorizontalAlign="Left" Width="50px"></ItemStyle>
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem, "productprice","{0:f}") %>
</ItemTemplate>
</asp:TemplateColumn>
2:
<asp:BoundColumn DataField="Addtime" HeaderText="录入时间" DataFormatString="{0:yyyy/MM/dd}">
<ItemStyle Width="100px"></ItemStyle>
</asp:BoundColumn>
3
<asp:Image id=Image1 runat="server" Height="160" Width="140" BorderColor="#d4d0c8" BorderWidth="1" ImageUrl='<%# DataBinder.Eval(Container, "DataItem.prod_img1","../images/Small/"+"{0}") %>'>