<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridOnRowDataBound" ForeColor="#333333" Height="214px" Width="555px"> <Columns> <asp:TemplateField> <ItemTemplate> <a href="javascript:switchViews('div<%# Eval("ID") %>', 'one');"> <img id="imgdiv<%# Eval("ID") %>" alt="Click to show/hide orders" border="0" src="plus.png" /> </a> </ItemTemplate> </asp:TemplateField> <asp:BoundField DataField ="ID" HeaderText="ID:"/> <asp:BoundField DataField="Firstname" HeaderText="Firstname:"/> <asp:BoundField DataField="LastName" HeaderText="Lastname:"/> <asp:BoundField DataField="Parent" HeaderText="Parent:"/> <asp:TemplateField> <ItemTemplate> ...
protected void GridOnRowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { GridView gv = (GridView)(e.Row.FindControl("GridView2")); gv.DataSource =buffer2; //objectlist gv.DataBind(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)