How to create Datagrid subgrid c aspnet
I want to create Datagrid subgrid c aspnet . The main datagrid will have subgrids… simple! Not! I am lost here so somebody please help me how to do it! One row for the main and then several subs.
I want to create Datagrid subgrid c aspnet . The main datagrid will have subgrids… simple! Not! I am lost here so somebody please help me how to do it! One row for the main and then several subs.
Â
What you are asking is about developing a hierarchical grid in ASP.NET. Such a control is not directly available in ASP.NET and its a bit complicated process to develop a hierarchical grid. I have found a good example with sample code that could assist you.
Sample code uses DIV controls within the main grid view and the sub grids are created inside those DIV tags.
http://www.dotnettwitter.com/2011/06/hierarchical-gridview-in-aspnet.html
If you could buy third party controls Telerik would give you a very easy solution for this hierarchical grid. Telerik grid view supports up to three levels within a grid and tabbing controls within the grids. Telerik provides you very good samples, Tutorials and also forum support. So buying Telerik would be a good option. See the below link.
https://demos.telerik.com/aspnet-ajax/grid/examples/hierarchy/declarative-relations/defaultcs.aspx