Click here to Skip to main content
15,904,153 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
what is the coding for treeview to show dynamic content from database.
for example:
i have three table as shown below
1. category(cateId,cateName,CateDescrip)
2. Brand(catId,BrandId,BrandName,BrandDescrip)
3. Product(BrandId,ProId,ProName,Prodescrip)
and i want to show the tree view like this:

*Car
__*Tata
______*Indica
______*Nano
__*Honda
______*City
______*Crapter
*Bike
__*Bajaj
______*Pulsar
______* XCD
__*HeroHonda
______*CBZ
______*Splender

so plz provide me the code for this
as soon as possible.
regards
Balwant.
Posted
Comments
Sandeep Mewara 1-Dec-10 1:51am    
No effort and asking for code!
rasada 1-Dec-10 9:32am    
Submit your code what you have completed for this solution.
Abdul Quader Mamun 1-Dec-10 9:34am    
Show your effort.

Thank you for your question. Follow the link.

http://www.codeproject.com/KB/aspnet/ParentChildTreeView.aspx[^]

Thanks,
Mamun
 
Share this answer
 
 
Share this answer
 
You should have tried! All you need is to form the dataset correctly such that the tree structure can be formed as desired.

There could be multiple ways to do it. Either have a well structured dataset/datatable or write a logic to form an XML as desired to feed into treeview.
 
Share this answer
 

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