?
Solved

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

Posted on 2010-11-10
3
Medium Priority
?
1,190 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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

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

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
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…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

764 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