473,395 Members | 1,379 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,395 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
Nov 21 '05 #1
1 1349
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

Nov 21 '05 #2

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

Similar topics

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: 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: Hutty | last post by:
I have a table that has two columns, Parent and Child. I'm able to populate a IEControls treeview with the Parent column. On the same row as the Parent is the child in the Child colum. How do...
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
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
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...

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.