472,782 Members | 1,359 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,782 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 4648
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
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.