Solved

Binding a Datasource to a TreeView

Posted on 2009-07-01
2
2,209 Views
Last Modified: 2012-05-07
Experts,

I have a TreeView.  I want to bind it to a DataSource.  

I dragged the table from the Server Explorer onto the form.  It makes a GridView (which I don't want) and a DataSource object attached to it.  

I try to find the DataSource in the TreeView property, but it's not listed.  I change the name of the DataSource, but it's still not listed.  How do I create a DataSource that is not attached to a grid that I can link to the TreeView?
0
Comment
Question by:NigelRocks
2 Comments
 
LVL 9

Accepted Solution

by:
Rahul Goel earned 500 total points
ID: 24760775
Please refer to the following article, here is your solution

http://www.eggheadcafe.com/articles/treeview_databinding.asp
0
 
LVL 1

Author Comment

by:NigelRocks
ID: 24766917
Actually, I'm using an ASP.NET TreeView.
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
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.
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.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

757 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

21 Experts available now in Live!

Get 1:1 Help Now