471,338 Members | 1,084 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,338 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 4586
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by serge calderara | last post: by
3 posts views Thread by Kelvin Leung | last post: by
3 posts views Thread by serge calderara | last post: by
3 posts views Thread by kevinwolfe | last post: by
1 post views Thread by =?Utf-8?B?QW5kcmV3?= | last post: by

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.