C# .NET - Tree View using access database - Asked By Asad Khan on 08-Sep-13 02:04 AM

si have Access DB,it has 2 table included,
1 table contain this kind a data which is shown below,
Name Cell no Other
Asad 12345 None
Asad 23456 None
Saad 546464 St
Sam 54154 St
Now Quary is I want Show this table data on my c# form application in Tree view
like below
Asad-----123456
-------None
-----23456
----None
Saad----546464
---------St
Sam-----54154
-------St
How Can I do This kind a Grouping in tree view using Database??

Robbe Morris replied to Asad Khan on 08-Sep-13 10:21 AM
Your data isn't structured well for use in a TreeView.  You'll have to iterate through all of the rows and write manual logic to add nodes to the TreeView.  Here are a couple of articles to help:

https://www.nullskull.com/articles/treeview_databinding.asp
https://www.nullskull.com/a/726/net-treeview-faq--drag-and-drop-right-click-menu.aspx