Results 1 to 3 of 3

Thread: [Resolved] Expanding treeview

  1. #1

    Thread Starter
    Hyperactive Member naruponk's Avatar
    Join Date
    Feb 2004
    Location
    Some where in the world
    Posts
    423

    Post [Resolved] Expanding treeview

    Hi,

    When I have created a tree view, it would not shows any child node.
    How to assign tree view to automatically expanded all node?

    Thanks
    Last edited by naruponk; Feb 21st, 2005 at 02:35 AM.

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Expanding treeview

    There is no automatic method, you need to run the following code after the Treeview has been loaded.

    VB Code:
    1. Dim objNode as Node
    2.  
    3. For each objNode in Treeview1.Nodes
    4.     objNode.Expanded = True
    5. Next

  3. #3

    Thread Starter
    Hyperactive Member naruponk's Avatar
    Join Date
    Feb 2004
    Location
    Some where in the world
    Posts
    423

    Re: Expanding treeview

    It works fine
    Thanks brucevde

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