Solved

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

Posted on 2010-11-10
3
1,164 Views
Last Modified: 2012-05-10
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?
0
Comment
Question by:realcoding
  • 2
3 Comments
 
LVL 15

Expert Comment

by:Praveen Venu
ID: 34110258
0
 

Accepted Solution

by:
realcoding earned 0 total points
ID: 34122359
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
 

Author Closing Comment

by:realcoding
ID: 34153327
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

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now