473,378 Members | 1,067 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,378 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 1455
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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: 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...

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.