Filling a Treeview

  • Thread starter Thread starter Luis
  • Start date Start date
L

Luis

Hello Everybody!
I have a table in my database, this table has some numerated items, and
they look like this:
1 Item
1.1 Item
1.1.1 Item
1.2 Item
1.2.1 Item
1.2.1.1 Item
1.2.1.2 Item
1.2.2 Item
1.3 item
2 Item
2.1 item
2.2 item
2.2.1 item
2.2.2.1 item
and so on, now I need the same structure in a tree, do you know how could I
get this done?
Thanks in advanced.
Luis.

By the way I am using Visual Studio 2005, Asp 2.0 and Sql Server 2000
 
Luis said:
I have a table in my database, this table has some numerated items,

.. . .
and so on, now I need the same structure in a tree, do you know how could I
get this done?

Which part(s) are you having trouble with?

Getting the root items?
Adding them to the treeview?
Getting the "next" level of nodes for an item as the user expands it?
Examining the parent node, so you can work out what the numbering on
each newly-added child node should be?
Adding these child nodes to the treeview?

HTH,
Phill W.
 
Back
Top