<asp:GridView ID="grdViewCustomers" runat="server" AutoGenerateColumns="false" DataKeyNames="PackerID" OnRowDataBound="grdViewCustomers_OnRowDataBound" CssClass="Grid"> <Columns> <asp:TemplateField ItemStyle-Width="20px"> <ItemTemplate> <a href="java<!-- no -->script:divexpandcollapse('div<%# Eval("PackerID") %>');"> <img alt="Details" id="imgdiv<%# Eval("PackerID") %>" src="images/plus.png" /> </a> <div id="div<%# Eval("PackerID") %>" style="display: none;"> <asp:GridView ID="grdViewOrdersOfCustomer" runat="server" AutoGenerateColumns="false" CssClass="ChildGrid" ShowFooter="true" OnRowCommand="grdViewOrdersOfCustomers_OnRowCommand"> <Columns> <asp:TemplateField HeaderText="OutwardID"> <ItemTemplate> <asp:Label id="OutwardID" runat="server" Text='<%#Bind("OutwardID") %>'> </asp:Label> </ItemTemplate> <FooterTemplate> <asp:TextBox ID="txtOutwardID" runat="server" ></asp:TextBox> <act:FilteredTextBoxExtender runat="server" ID="FteOutwardID" TargetControlID="txtOutwardID" FilterType="Custom" ValidChars="0123456789-/"></act:FilteredTextBoxExtender> </FooterTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Date"> <ItemTemplate> <asp:Label id="Date" runat="server" Text='<%#Bind("Date") %>'> </asp:Label> </ItemTemplate> <FooterTemplate> <asp:TextBox runat="server" ID="txtDate" onfocus="setdate(this);" ></asp:TextBox> </FooterTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="Product"> <ItemTemplate> <asp:Label id="ProductID" runat="server" Text='<%#Bind("ProductID") %>'> </asp:Label> </ItemTemplate> <FooterTemplate> <asp:TextBox ID="txtProductID" runat="server" ></asp:TextBox> </FooterTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="" > <ItemTemplate> </ItemTemplate> <FooterTemplate> <asp:Button id="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click" /> </FooterTemplate> </asp:TemplateField> </Columns> </asp:GridView> </div> </ItemTemplate> </asp:TemplateField> <asp:BoundField ItemStyle-Width="150px" DataField="Description" HeaderText="Contact Name" /> <asp:BoundField ItemStyle-Width="150px" DataField="Location" HeaderText="City" /> </Columns> </asp:GridView>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)