Groups | Blog | Home
all groups > asp.net datagrid control > september 2003 >

asp.net datagrid control : Hierarchical and recursive nested datagrid



Ken Cox [Microsoft MVP]
9/29/2003 8:59:13 PM
Hi Nicolas,

Make sure you check out this excellent article and code. It goes at least one
level, so you may be able to nest it double.

Nested Grids for Hierarchical Data

http://msdn.microsoft.com/msdnmag/issues/03/10/CuttingEdge/


--

Help stop SWEN in the newsgroups - Get the W32.Swen.A@mm Removal Tool:
http://securityresponse.symantec.com/avcenter/venc/data/w32.swen.a@mm.removal.tool.html




[quoted text, click to view]
Hi!
I want to populate a hierarchical datagrid with a parent-child datatable.

Category | ParentCategory | Name
xxx | xxx | xxx

What i want to do is to populate one datagrid with the first level category
column and each time we click on the +/- button of a category row,
it should insert a datagrid with the child category in this row. etc... (A
type of treeview but with datagrid)

-Category 1ID | Category1 Name
-|__ Category 1.1| Category 1.1 Name
+|__ Category 1.2 | Category 1.2 Name

+Category 2ID | Category2 Name


Thanks a lot for your help and sorry for my poor english.






nicolas
9/29/2003 9:35:43 PM
Hi!
I want to populate a hierarchical datagrid with a parent-child datatable.

Category | ParentCategory | Name
xxx | xxx | xxx

What i want to do is to populate one datagrid with the first level category
column and each time we click on the +/- button of a category row,
it should insert a datagrid with the child category in this row. etc... (A
type of treeview but with datagrid)

-Category 1ID | Category1 Name
-|__ Category 1.1| Category 1.1 Name
+|__ Category 1.2 | Category 1.2 Name

+Category 2ID | Category2 Name


Thanks a lot for your help and sorry for my poor english.





Nicolas Chevet
9/30/2003 11:09:58 AM
OK, this article is great.
But I need to use only one table with parent-child relations columns.
How can i use my table with the nestedDatagrid and how can i have more than
2 level?

Thanks a lot.


[quoted text, click to view]

AddThis Social Bookmark Button