473,396 Members | 1,966 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 1318

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: 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:
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: 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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.