|
-
Jul 14th, 2004, 02:16 PM
#1
Thread Starter
Lively Member
Recursive Treeview *resolved*
Ok, i have a database
Code:
ID Department Section Name OwnerID
===================================================================
1 Dep1 Sec1 Root 1 0
2 Dep1 Sec1 Root 2 0
3 Dep1 Sec1 Sub 1-1 1
4 Dep1 Sec1 Sub 2-1 2
5 Dep1 Sec1 Sub 2-1-1 2
... etc ...
I have a 3 tier layout (GUI, Business, Data (linking to SQL2000)).
How would i go about creating a recursive procedure which will populate the treeview back at the GUI layer??
Im completely confused now so have given up guessing!
Any help at all will be greatly appreciated.
Last edited by carl_mathews200; Jul 14th, 2004 at 04:16 PM.
-
Jul 14th, 2004, 02:51 PM
#2
I helped another person with a similar problem...
Lets see if i can find the code...
Here is the post... Just adapt it a little and your set...
Tips:
- Google is your friend! Search before posting!
- Name your thread appropriately... "I Need Help" doesn't cut it!
- Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
- Allways Include the Name and Line of the Exception (if one is occuring!)
- If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)
If you think I was helpful, rate my post  IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous
-
Jul 14th, 2004, 03:03 PM
#3
Thread Starter
Lively Member
-
Jul 14th, 2004, 03:06 PM
#4
If you need further help.... i can help you from the point the data is loaded into a dataset/datatable.
Tips:
- Google is your friend! Search before posting!
- Name your thread appropriately... "I Need Help" doesn't cut it!
- Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
- Allways Include the Name and Line of the Exception (if one is occuring!)
- If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)
If you think I was helpful, rate my post  IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous
-
Jul 14th, 2004, 04:16 PM
#5
Thread Starter
Lively Member
LIFE SAVER!
Thank you Worked first time (well 2nd, after i corrected MY mistakes)
You have no idea how much you have helped me!! Thank you again
-
Jul 14th, 2004, 04:25 PM
#6
Tips:
- Google is your friend! Search before posting!
- Name your thread appropriately... "I Need Help" doesn't cut it!
- Always post your code!!!! We can't read your mind!!! (well, at least most of us!)
- Allways Include the Name and Line of the Exception (if one is occuring!)
- If it is relevant state the version of Visual Studio/.Net Framwork you are using (2002/2003/2005)
If you think I was helpful, rate my post  IRC Contact: Rizon/xous ChakraNET/xous Freenode/xous
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|