Solved

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

Posted on 2010-11-10
3
1,165 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
A short film showing how OnPage and Connectwise integration works.
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

930 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

22 Experts available now in Live!

Get 1:1 Help Now