Results 1 to 5 of 5

Thread: Big trouble with little Treeview

  1. #1

    Thread Starter
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018

    Wink Big trouble with little Treeview

    Can someone show me how to populate a treeview to achieve the following:

    Customer
    ABC Ltd
    Head Office
    Central Office
    XYZ Ltd
    Head Office

    It's driving me a bit nuts at the moment.

    Thanks in Advance and Merry Xmas

    Parksie

  2. #2

    Thread Starter
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018
    It should look like:

    Customer
    --->ABC Ltd
    ---------->Head Office
    ---------->Central Office
    --->XYZ Ltd
    ---------->Head Office

    Parksie

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Add the 'Head Office' and 'Central Office' nodes to the 'ABC Ltd' Node then add it to the 'Customer' Node.

    Then do basically the same thing for the other.

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Customer must be the parent node

    ABC Ltd
    XYZ Ltd
    these tow must be child nodes for the parent Customer

    Head Office
    Central Office
    child nodes for the inherited child (ABC Ltd)

    and so on ....

    1-(Parent)
    Customer
    2- (Child)
    --->ABC Ltd
    3- (Child)
    ---------->Head Office
    ---------->Central Office
    2- (Child)
    --->XYZ Ltd
    3- (Child)
    ---------->Head Office
    Last edited by Pirate; Oct 17th, 2002 at 04:05 PM.

  5. #5
    Addicted Member
    Join Date
    Mar 2001
    Location
    Devon, UK
    Posts
    181
    The treeview index works as follows

    1 (customers)
    ------>1(ABC Ltd)
    ----------->1(Head Office)
    ----------->2(Central Office)
    ------->2(XYZ ltd)
    ----------->3(Head Office)
    ----------->4(Central Office)


    So when adding you must keep a record of the index of the parent node of that particular node.
    Wind and waves resolves all problems.

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