473,405 Members | 2,294 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Help on TreeNode binding data ??

Dear all,

I ma collected data from a CSV file and build dataset based on those data.
I would like to bind this dataset to a treeview control in order that nodes
gets displayed automatically based on my dataset column name.

Does anyone could help me how to do this ?
Any sample will be appriciate

best regards
serge
Jul 21 '05 #1
3 4688
Hi serge,

As per my understanding, you cannot 'directly' bind a dataset to a TreeView
control. You might have to make an XML data source from the Dataset, and then
Data bind it.

Check these links..
http://www.samspublishing.com/articl...1748&seqNum=12
http://msdn.microsoft.com/workshop/w...w/treeview.asp

HTH,

In case you need any help, do post a msg back...
Happy Coding
"serge calderara" wrote:
Dear all,

I ma collected data from a CSV file and build dataset based on those data.
I would like to bind this dataset to a treeview control in order that nodes
gets displayed automatically based on my dataset column name.

Does anyone could help me how to do this ?
Any sample will be appriciate

best regards
serge

Jul 21 '05 #2
Vishnu-Chivukula wrote:
Hi serge,

As per my understanding, you cannot 'directly' bind a dataset to a
TreeView control. You might have to make an XML data source from the
Dataset, and then Data bind it.
That's sort of what I was working on today.

I wrote a web service that takes the result of a dataset from a DB2 database
and turns it to XML ( there's no native method for that ).

Then I return that XML as XmlNode from the web service.. and I iterate
through it with a recusive method ( from that MS article ) that adds a
treeview leaf for each XML node.
Of course I customize it quite a bit at the web service to turn some records
info into attributes and will do the same back on the treeview.

Check these links..
http://www.samspublishing.com/articl...1748&seqNum=12
http://msdn.microsoft.com/workshop/w...w/treeview.asp

HTH,

In case you need any help, do post a msg back...
Happy Coding
"serge calderara" wrote:
Dear all,

I ma collected data from a CSV file and build dataset based on those
data. I would like to bind this dataset to a treeview control in order
that nodes gets displayed automatically based on my dataset column name.

Does anyone could help me how to do this ?
Any sample will be appriciate

best regards
serge


--
Texeme
http://texeme.com

Jul 21 '05 #3
I forgot to mention that I am buidling windows application for the time beeing.
I am not any thing with web app or web service.
if I am binding my treenode to a xml datasource, I can sutomize my nodes
based on the field of my choice ?

or how toi do then

regard
serge

"Vishnu-Chivukula" wrote:
Hi serge,

As per my understanding, you cannot 'directly' bind a dataset to a TreeView
control. You might have to make an XML data source from the Dataset, and then
Data bind it.

Check these links..
http://www.samspublishing.com/articl...1748&seqNum=12
http://msdn.microsoft.com/workshop/w...w/treeview.asp

HTH,

In case you need any help, do post a msg back...
Happy Coding
"serge calderara" wrote:
Dear all,

I ma collected data from a CSV file and build dataset based on those data.
I would like to bind this dataset to a treeview control in order that nodes
gets displayed automatically based on my dataset column name.

Does anyone could help me how to do this ?
Any sample will be appriciate

best regards
serge

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: serge calderara | last post by:
Dear all, I have a csv file data which has been read and populate on a dataset object. then I need to bind part of the content of the dataset to a treeview control. I have read that XML format...
3
by: Kelvin Leung | last post by:
Hi I use Drag and Drop between 2 TreeView Control under VB.Net But I found that it cannot work when I add sub-class for each node Is it drag and drop method cannot work when the node with...
3
by: serge calderara | last post by:
Dear all, I ma collected data from a CSV file and build dataset based on those data. I would like to bind this dataset to a treeview control in order that nodes gets displayed automatically...
3
by: kevinwolfe | last post by:
Hi all. I'd like any suggestions on how I can get my data set (not a DataSet) bound to a couple of controls on a form. Let me start by describing what my data looks like. Each entry correlates...
0
by: Charlie | last post by:
Hi: I get a TreeNode binding error when using Data property of XmlDataSource control. When I switch to TextFile property and point to xml file on hard drive, problem goes anyway. I'm...
20
by: DemonFox | last post by:
i have started my midterm exersize than is on binary treescan anyone help me on the basics i have started and i have made the following on my tree.h file: struct treenode { int data;...
8
by: slizorn | last post by:
Hi guys, I have this coding that I wanted to try out. Basically this is meant to be done in Java as practice for the Topic trees in data structures and algorithms. I have recently learned C++ on...
2
by: slizorn | last post by:
hi guys, another problem i am facing with this program.. i have created a method to read in values from a file and store them into TreeNodes of a Tree please help me to solve the problem below.....
1
by: =?Utf-8?B?QW5kcmV3?= | last post by:
I am trying to adapt some code that I have where I drag and drop from two treeview controls. Now I want to drag and drop from a listview to a treeview. Whatever I do does not work and I cannot find...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.