By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,905 Members | 1,616 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,905 IT Pros & Developers. It's quick & easy.

Help on TreeNode binding data ??

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
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.