HLP: Treeview and Recurse (Parent/Child)

M

Mr. B

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
 
M

Michael C#

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/PhSinglyLinkedLists.asp
Double Linked List: http://www.codeproject.com/csharp/doubly-linkedlist.asp
Persistent Data Structures:
http://www.codeproject.com/csharp/PersistentDataStructures.asp
"Skip List": http://www.codeproject.com/csharp/SkipList1.asp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top