I have a treeview on a web page. I have a flat file that contains the heirarchy of the treeview. Here is an example of the flat file:
Element Parent
1 blank
A 1
B A
C B
D B
2 1
F 2
G 2
H F
I G
So I want my treeview to look like this:
1
+A
+B
C
D
+2
+F
H
+G
I
So "1" is the root and all parents will fall under this root. I then want all nodes to be built dynamically as I read thru this flat file. But I'm not sure how to do this or if it's even possible. Can anyone help?