Solved

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

Posted on 2010-11-10
3
1,172 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

730 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