C# Programming
08-01-2009, 10:00 PM
Hi,
Here's what my table looks like..
ID Parent Name
------------------------
0 0 BaseLine
1 0 A
2 1 A1
3 1 A2
4 0 B
5 4 B1
6 4 B2
How would you load it recursively so it would show A1 & A2 under A and B1 & B2 under B and any deeper sub levels would show in the right node level.. I know it's supposed to be a simple recursion logic but it's getting me tired http://www.barakasoft.com/script/Forums/Images/smiley_sigh.gif
To define recursion, we must first define recursion!
(\ /)
(O.o)
(><)
(http://www.qsoftonline.com)
Here's what my table looks like..
ID Parent Name
------------------------
0 0 BaseLine
1 0 A
2 1 A1
3 1 A2
4 0 B
5 4 B1
6 4 B2
How would you load it recursively so it would show A1 & A2 under A and B1 & B2 under B and any deeper sub levels would show in the right node level.. I know it's supposed to be a simple recursion logic but it's getting me tired http://www.barakasoft.com/script/Forums/Images/smiley_sigh.gif
To define recursion, we must first define recursion!
(\ /)
(O.o)
(><)
(http://www.qsoftonline.com)