Click here to Skip to main content
15,881,898 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
have a table with fields like id,name,sponsorid and i have to search for one specified value with id as a root of tree and show all the further childs sub childs and so on how it possible .
like 1 is root after search
1.1 1.2 1.3 have childs 1.2 have further a aa aa aa aa aa childs and aa have further aaa and aaa have further aaaaaa so on heirarichal
1
 1.1
 1.2
    a
    aa
    aa
       aaa
           aaaaaa
    aa
    aa
    aa
      
 1.3
Posted
Updated 7-Nov-14 5:21am
v2
Comments
Sergey Alexandrovich Kryukov 7-Nov-14 10:41am    
What's wrong with reading original MSDN documentation?
—SA
Maciej Los 7-Nov-14 10:46am    
What have you done? Where are you stuck?

What's wrong with System.Web.UI.WebControls.TreeView:
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.treeview%28v=vs.110%29.aspx[^]?

—SA
 
Share this answer
 
Comments
Maciej Los 7-Nov-14 10:45am    
Nothing's wrong ;)
+5!
Sergey Alexandrovich Kryukov 7-Nov-14 12:06pm    
Thank you, Maciej.
Amazingly, two answers in a row due to inquirers unfamiliar with tree views.
—SA
Manas Bhardwaj 7-Nov-14 11:41am    
Yes +5!
Sergey Alexandrovich Kryukov 7-Nov-14 12:07pm    
Thank you, Manas.
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900