473,396 Members | 1,738 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.

Tree View problem, can anyone have idea about the logic?

zzz
a text file inside: (**those line are not sort, it is random**):

aaa (number 1)
bbb (number 2, reference 1)
ccc (number 3, reference 2)
ddd (number 4, reference 2)
eeee (number 5, reference 4)
ffff (number 6)
ooo (number 7)
ggg (number 8, reference 6)
qqq (number 9, reference 8)
zzz(bumber 10, referebce 1)
---------------------------------------------------------------------------

when I **readLine()** from this file to end

what way I can make to a tree view ???

tree view
+aaa
|---------bbb
| |-----------ccc
| |-----------ddd
| |--------eee
|--------zzz

ooo
fff
|---------ggg
|----------qqq

like the newsgroup articles is follow the reference number to build to tree
example,
the code:

tld one = new tld();
one.text = eee;

tld two= new tld(();
two.text = ddd;

tld three = new tld();
three.text = ccc
tld four = new tld()
four.text = zzz

two.Nodes.add (three);
one.Nodes.add(two);
one.Nodes.add(four);

makes:

+eee
|-----ddd
| +------ccc
|-----zzz
THANKS
Nov 15 '05 #1
0 1319

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

Similar topics

2
by: Tony Marston | last post by:
For those who you thought my method of implementing OO principles in PHP was totally wrong - see http://www.tonymarston.co.uk/php-mysql/good-bad-oop.html for details, you can now read...
12
by: pillepop2003 | last post by:
Hey! Can anyone give me a hint, how this problem is best implemented: I have a table of users (see below), where every user has one "superior user" (= parent node), this should be a fully...
19
by: Christian Fowler | last post by:
I have a VERY LARGE pile of geographic data that I am importing into a database (db of choice is postgres, though may hop to oracle if necessary). The data is strictly hierarchical - each node has...
0
by: Adom | last post by:
a text file inside: (**those line are not sort, it is random**): aaa (number 1) bbb (number 2, reference 1) ccc (number 3, reference 2) ddd (number 4, reference 2) eeee (number 5, reference 4)...
1
by: Nick Warrington | last post by:
Hi all, I am having a small problem with a tree control I am playing with. I have created a custom tree view that displays nodes with a linktext control to the right of the nodes. When the...
3
by: Saradhi | last post by:
Hi All, Here I am facing a performance problem with the TreeView Node renaming. I am displaying a hierarchy Data in a treeview in my Windows C# Application. My tree view represents an...
10
by: dwok | last post by:
Does anyone know of a good article that discusses creating a "Tree View" control in ASP.NET? Or perhaps a Tree View Control that comes with source code? I have come across a lot of tree controls...
12
by: Doug | last post by:
Hi, I learned a little about the model view presenter pattern at a conference this last week and am experimenting with it. It's working pretty well but I have a question. I am trying to use...
1
by: Smish | last post by:
hey all, My requirement is that" i need to implement page navigation..but i dnt want to use tree view control..the effect which i need is same as when v use tree view control but with out using...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
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.