473,797 Members | 3,148 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Treeview vs databinding

Hi all,

I need help (again). (sorry for my english, it is not my first language)

I was successfull by my own to create the treeview nodes from data into a
table

by using a dataview and rowfilters, and a recursive function call, now my
treeview is all correctly loaded, (position wise and nodes wise)

Each nodes into mytreeview represent a "service" object wich have more
information as fields.

those fields I would like to bound them with some other control (the fields
are also from the same table), like Combobox and textbox.

How the can I accomplish the Binding betwen my service object (the nodes)
and a textbox ?

Marc R.

Jan 30 '06 #1
1 1846
I guess I got it working, I found an interesting way to make it work with
much less operation :

I did create a Dataview for operations only.

Into Treeview.afters elect :
DVserviceOperta ion.rowfilter = "ser_id = " & Ctype(e.node, Service).id
'this way I got only 1 row as a return into DVServiceOperat ion
'then I bind all textboxes and other control from form to that dataview
instead
afterwards, It is working with a normal dataview bound to normal control.

I hopes It helps someone.

Marc R.

"Marc R." <No****@Newgrou psONLY.com> wrote in message
news:ef******** ******@TK2MSFTN GP14.phx.gbl...
Hi all,

I need help (again). (sorry for my english, it is not my first language)

I was successfull by my own to create the treeview nodes from data into a
table

by using a dataview and rowfilters, and a recursive function call, now my
treeview is all correctly loaded, (position wise and nodes wise)

Each nodes into mytreeview represent a "service" object wich have more
information as fields.

those fields I would like to bound them with some other control (the
fields are also from the same table), like Combobox and textbox.

How the can I accomplish the Binding betwen my service object (the nodes)
and a textbox ?

Marc R.

Jan 31 '06 #2

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

Similar topics

2
4577
by: Trond Hoiberg | last post by:
Let say i have a bunch of files. Logfiles that is stored in subfolders. Folder1 --logfile1 --logfile2 --logfile3 Folder2 --logfile1 --logfile2 I want to display these files using data from the files in an TreeView
0
1141
by: Balázs Katona | last post by:
I have a form with a treeview. This application is MDI. In the treeview we show datas from database (not databinding). The application works in a client-server architecture. How can I achieve, if on any machine's any treeview somebody make some changes in a node, then it appears immediatly in the other views, and on the other machines too. Please help me, is there any useful and simple idea? sorry for my english. Thx: Baazska
2
2438
by: Stephen | last post by:
In asp.net 1.1, the IE treeview web control has a property called "SelectExpands" that, when set to true, expands a node when a user clicks the node text. I can't seem to replicate this in the treeview control in .net 2.0. Anyone know of way to expand a node when a users clicks the node text?
0
1114
by: Agnes | last post by:
Does Treeview allow databinding ?? Can someone be kind to give me a simple sample ? thanks in advance
1
2211
by: | last post by:
What's the best way to create new nodes on a treeview 2.0 and save them to an xml file? Thanks, Victor
3
9845
by: SteveT | last post by:
I am trying to populate a TreeView with XML data within a DataSet. I don't see the property DataSource in the treeview, only a DataBinding. Can that property to be used to populate my TreeView or must I brute force my way by added each row of my dataset to the TreeView? -- ----------- Thanks, Steve
26
8531
by: JJ | last post by:
Is there any way you can expand a parent node on the treeview control _without a postback_ by clicking on the node text (NOT clicking the expand image URL) ? I want to format the treeview node to look like a column of buttons that expand to show the child nodes (if there are child nodes) qithout a postback. I don't want to display the plus/minus or any other expand/collapse graphic. ?
2
2075
by: =?Utf-8?B?QnJpYW4gTmljaG9sc29u?= | last post by:
Hello -- I'm having problems figuring out how to bind an XML file to a treeview control. I have the following test XML: <?xml version="1.0" encoding="utf-8"?> <instruments> <instrument name="Name1" type="Type1" path="Path1" /> <instrument name="Name2" type="Type2" path="Path2" /> <instrument name="Name3" type="Type3" path="Path3" /> </instruments>
0
2211
by: dutsnekcirf | last post by:
Okay, I think this one is a really hard one for yous geniuses out there. I'm going to try my best to explain in as much detail as I can. And for the most part I just want to know if I'm doing this the right way of it there's an easier way to do it. Background/Platform: Windows XP Office Excel 2007 Visual Studio Tools for Office 2008 Document level customization VB.Net I have a spreadsheet that is used to project which site(s) a...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10468
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10245
jinu1996
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...
1
10205
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5458
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...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4131
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2933
bsmnconsultancy
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...

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.