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 3 4714
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
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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 is particular usefull to be bind to a treeview
as it handle nodes. So I have try to save my dataset content into a xml file.
The content of that file is as follow :
- <NewDataSet>
- <REC_INFO>
|
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 sub-class ?
If no, any related information/reference ?
Thanks a lot
|
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 based on my dataset column name.
Does anyone could help me how to do this ?
Any sample will be appriciate
best regards
|
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 to a piece of equipment
and has the following information:
Two strings, one for a system name and one for equipment name
An integer
An ArrayList (which will contain only strings)
|
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 initializing Data property with xml string
that matches file exactly. Seems to be problem with binding because if I
remove bindings, tree works both ways. I'm binding on server like so...
TreeNodeBinding bind = new TreeNodeBinding();
bind.DataMember =...
| |
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;
struct treenode *left;
struct treenode *right;
|
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 my own so I wanted to test my skill in C++ by tryin to solve this problem using C++.
so yea here it goes...
i have a text file as follows...
H,E,L
E,B,F
|
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.. thanks :)
any help/suggestion is appreciated..
the program crashes when it reaches the following line:
assign1 = searchTree(treeObj->root ,data1)->item;
|
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 any good articals on the net on
how to do so. I have attached my original code for the two treeview
controls. Can anybody point out where I need to make changes?
Dim NewNode As Windows.Forms.TreeNode
Dim imgIndex As Windows.Forms.TreeNode...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |