I can do this in a normal asp grid but I do not know how to achieve the same with radgrid.
In a asp grid I add nested grids like this:
How do I make the above in a radgrid considering that I have 7 level nested grids?
How do I make the equivalent of the OnRowDataBound for each nested grid in RadGrid?
Thanks for helping. If someone could please show me how to achieve the above in RadGrid then I will add the additional six level nesting I need. Thanks
In a asp grid I add nested grids like this:
<asp:TemplateField> <ItemTemplate> <asp:GridView ID="secondLevelGrid" runat="server" AutoGenerateColumns="false" CssClass="ChildGrid" OnRowDataBound="secondLevelGrid_OnRowDataBound"> <Columns> <%--My new nested grid goes here--%> <asp:BoundField DataField="Id" HeaderText="Id" /> <asp:BoundField DataField="Code" HeaderText="Code" /> <asp:BoundField DataField="Quantity" HeaderText="Q.ty" /> </Columns> </asp:GridView> </ItemTemplate></asp:TemplateField>How do I make the above in a radgrid considering that I have 7 level nested grids?
protected void firstLevelGrid_OnRowDataBound(object sender, GridViewRowEventArgs e){ if (e.Row.RowType == DataControlRowType.DataRow) { GridView firstLevelGrid = e.Row.NamingContainer as GridView; string code = firstLevelGrid.DataKeys[e.Row.RowIndex].Value.ToString(); GridView secondLevelGridView = e.Row.FindControl("secondLevelGrid") as GridView; secondLevelGridView.DataSource = //GetData secondLevelGridView.DataBind(); }}Thanks for helping. If someone could please show me how to achieve the above in RadGrid then I will add the additional six level nesting I need. Thanks