|
楼主 |
发表于 2020-3-25 09:45:01
|
显示全部楼层
这是我整个DataGrid
<asp:datagrid id="dgInfo" style="Z-INDEX: 102; LEFT: 120px; POSITION: absolute; TOP: 304px" runat="server"
Width="800px" Height="581px" GridLines="None" AutoGenerateColumns="False">
<Columns>
<asp:TemplateColumn>
<ItemTemplate>
<P><FONT face="宋体"></FONT></A></P>
<P>
<TABLE id="Table1" style="WIDTH: 744px; HEIGHT: 155px" cellSpacing="1" cellPadding="1"
width="744" border="1">
<TR>
<TD rowSpan="4">
<asp:Image id=Image1 runat="server" Width="168px" Height="165px" ImageUrl='<%# FormatImage(DataBinder.Eval(Container.DataItem, "id")) %>'>
</asp:Image></TD>
</TR>
<TR>
<TD align="right"><FONT face="宋体">商品名称:</FONT></TD>
<TD colSpan="5">
<asp:Label id="Label1" runat="server">
<%# DataBinder.Eval(Container.DataItem, "pname") %>
</asp:Label><FONT face="宋体">
<asp:Label id="Label2" runat="server">
<%# DataBinder.Eval(Container.DataItem, "code") %>
</asp:Label></FONT></TD>
</TR>
<TR>
<TD align="right"><FONT face="宋体">数量:</FONT></TD>
<TD><FONT face="宋体">
<asp:TextBox id="TextBox1" runat="server" BorderStyle="Groove" Width="32px">1</asp:TextBox>
<asp:Button id="Button1" runat="server" Text="<<" CommandName="ADD"></asp:Button>
<asp:Button id="Button2" runat="server" Text=">>" CommandName="ADD1"></asp:Button>
</FONT>
</TD>
<TD align="right"><FONT face="宋体">所赠积分:</FONT></TD>
<TD>
<asp:Label id="Label4" runat="server">
<%# DataBinder.Eval(Container.DataItem, "score") %>
</asp:Label></TD>
<TD align="right"><FONT face="宋体">市场价:</FONT></TD>
<TD>
<asp:Label id="Label5" runat="server">
<%# DataBinder.Eval(Container.DataItem, "price") %>
</asp:Label></TD>
</TR>
<TR>
<TD align="right"><FONT face="宋体">会员价:</FONT></TD>
<TD>
<asp:Label id="Label6" runat="server">
<%# DataBinder.Eval(Container.DataItem, "priceA") %>
</asp:Label></TD>
<TD align="right"><FONT face="宋体">成交价:</FONT></TD>
<TD>
<asp:Label id="Label7" runat="server">Label</asp:Label></TD>
<TD align="right"><FONT face="宋体">总计:</FONT></TD>
<TD>
<asp:Label id="Label8" runat="server">Label</asp:Label></TD>
</TR>
</TABLE>
</P>
</ItemTemplate>
</asp:TemplateColumn>
</Columns>
</asp:datagrid> |
|