473,396 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

HLP: Treeview and Recurse (Parent/Child)

I've been beating my brains out on trying to figure out how to do Recurse
(Parent/Child) code for my application (VB.net).

Basically a User enters data into an array. The data is pretty simple:

Parent Child Data
10 15 123
10 16 456
20 25 789
20 28 246
30 35 890
40 55 222

etc.

The info is flexible in that the information varies (depending upon the user
needs). And the quantity of Parent/Child input varies as well (say a maximum
of 50 +/- lines).

Back in VB6, this was a relative easy thing to do. But VB.net just messes me
up.

What the heck is the 'smart' trick here? I've almost got it once... but the
Code (to me) seems veryyyyy messy. There must be a simple 'catch' to this?

Anyone?

TIA

Bruce F
Jul 21 '05 #1
1 1459
Looks like a double-linked list to me. Try googling on that. Here's some
sample code, in VB.NET and/or C#.NET (which should convert to VB.NET fairly
easily):

B-Tree Sample: http://www.codeproject.com/vb/net/SimpleBTree.asp
Single Linked List:
http://www.codeproject.com/csharp/Ph...inkedLists.asp
Double Linked List: http://www.codeproject.com/csharp/doubly-linkedlist.asp
Persistent Data Structures:
http://www.codeproject.com/csharp/Pe...Structures.asp
"Skip List": http://www.codeproject.com/csharp/SkipList1.asp
"Mr. B" <Us**@NoWhere.com> wrote in message
news:p5********************************@4ax.com...
I've been beating my brains out on trying to figure out how to do Recurse
(Parent/Child) code for my application (VB.net).

Basically a User enters data into an array. The data is pretty simple:

Parent Child Data
10 15 123
10 16 456
20 25 789
20 28 246
30 35 890
40 55 222

etc.

The info is flexible in that the information varies (depending upon the
user
needs). And the quantity of Parent/Child input varies as well (say a
maximum
of 50 +/- lines).

Back in VB6, this was a relative easy thing to do. But VB.net just messes
me
up.

What the heck is the 'smart' trick here? I've almost got it once... but
the
Code (to me) seems veryyyyy messy. There must be a simple 'catch' to
this?

Anyone?

TIA

Bruce F

Jul 21 '05 #2

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

Similar topics

4
by: Ian Powell | last post by:
Hi I've got objects in an sorted ArrayList like: P:\ P:\\DOCS P:\\i386 P:\\i386\ASMS P:\\i386\ASMS\1000 P:\\i386\ASMS\1000\MSFT
5
by: JamesT | last post by:
Is it me or has the VB.NET Treeview control gone back to the darkages. I am trying to update a VB6 programme that uses the treeview control a lot- there are 4 treeview controls which are...
12
by: Bob Hollness | last post by:
Hi. I have a text file containing a list of files and their path. I.e. c:\MyDocs\File1.txt c:\MyDocs\File2.txt c:\MyDocs\File3.txt c:\MyDocs\File4.txt C:\MyDocs\Folder\File1.txt
1
by: Mr. B | last post by:
I've been beating my brains out on trying to figure out how to do Recurse (Parent/Child) code for my application (VB.net). Basically a User enters data into an array. The data is pretty simple:...
4
by: Henry | last post by:
Does anybody have a real-world sample of buiding a treeview control using data from database tables? All the sample code I have found either builds the treeview manually or uses a file directory...
0
by: stevobenno | last post by:
I have spent two days unsuccessfully trying to add cascading checkbox functionality to the IE Treeview in 1.1. Has anyone managed to do this.? I did manage to get some javascript that by all...
6
by: xla76 | last post by:
I have a simple treeview (treeview1) to which I have added two nodes (nodeA and nodeB) which have n levels of child nodes. What I want is to be able to identify whether the child node I select...
7
by: Joe Cool | last post by:
Let's say I have a Treeview control on a form. Each leaf node in the Treeview has a ContextMenuStrip, each with one ToolStripMenuItem, and all ToolStripMenuItems Click event is handled by a comment...
2
by: =?Utf-8?B?bWFib25k?= | last post by:
I'm using a treeview control. One parent node, several child nodes, several grandchild nodes. Each of the nodes has a checkbox. My question, when the user changes the check value of one of the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
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,...

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.