Hi..
I am working on tree view I have four parent nodes and and there sub child.
So should I have to maintain in table in database..
any body help please..
How to create table in database to store tree view parent and child node.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Amit ChoudharyRank #145 · 15.8K reputationPosted May 8, 2011, 9:24 PM EDT
You can create a table structure like this in your database:
Parent Table
Child Table
SubChild Table:
-
ChildID -
GrandChildName
Now, you just have to retrieve the nodes in a right hierarchy to get the elements and save them into database.GetAll the parents using GetSibling of parents and Get all the childs and save them respectively into db.
Hope this helps you.