日期:2014-05-18 浏览次数:21006 次
<asp:TemplateField HeaderText="规格"> <ItemTemplate> <asp:Label ID="lblg" runat="server"><%#DataBinder.Eval(Container.DataItem, "wlh")%></asp:Label> </ItemTemplate> <EditItemTemplate> <asp:TextBox ID="txtL" runat="server" Width="30px"></asp:TextBox> <asp:TextBox ID="txtW" runat="server" Width="30px"></asp:TextBox> <asp:TextBox ID="txtH" runat="server" Width="30px"></asp:TextBox> </EditItemTemplate> </asp:TemplateField>
int i = e.RowIndex; string l = ((TextBox)(gvapply.Rows[i].Cells[2].Controls[1])).Text.ToString(); string w = ((TextBox)(gvapply.Rows[i].Cells[2].Controls[2])).Text.ToString(); string h = ((TextBox)(gvapply.Rows[i].Cells[2].Controls[3])).Text.ToString();