Results 1 to 6 of 6

Thread: Recursive Treeview *resolved*

  1. #1

    Thread Starter
    Lively Member carl_mathews200's Avatar
    Join Date
    May 2004
    Location
    Wales, UK
    Posts
    94

    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.

  2. #2
    Frenzied Member <ABX's Avatar
    Join Date
    Jul 2002
    Location
    Canada eh...
    Posts
    1,622
    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

  3. #3

    Thread Starter
    Lively Member carl_mathews200's Avatar
    Join Date
    May 2004
    Location
    Wales, UK
    Posts
    94
    Thanks This looks like exactly what i need... i hope i can wangle it with the database and not CSV...

    probably really easy but the whole recursive concept baffles me

  4. #4
    Frenzied Member <ABX's Avatar
    Join Date
    Jul 2002
    Location
    Canada eh...
    Posts
    1,622
    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

  5. #5

    Thread Starter
    Lively Member carl_mathews200's Avatar
    Join Date
    May 2004
    Location
    Wales, UK
    Posts
    94

    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

  6. #6
    Frenzied Member <ABX's Avatar
    Join Date
    Jul 2002
    Location
    Canada eh...
    Posts
    1,622
    np
    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
  •  



Click Here to Expand Forum to Full Width