bind dataset to a treeview in asp.net c#?

is there a way to bind a tree view control to a data set?

i am having to build the nodes of the tree by looping through a data set and wanted to clean it up and make life better buy just doing a .databind()

any ideas?
realcodingAsked:
Who is Participating?
 
realcodingAuthor Commented:
actually you can only bind to a site-map provider or xml.
with sql2005 i can use FOR XML and get my data in a good format and then just bind it to the DataSource and then .databind()

done!
0
 
Praveen VenuTechnical Project ManagerCommented:
0
 
realcodingAuthor Commented:
this is a direct solution without looping to build each node. i want to be able to so what my question + answer stated and that's to just do a .databind()
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.