Results 1 to 6 of 6

Thread: Hiding parent nodes

Threaded View

  1. #1

    Thread Starter
    Frenzied Member usamaalam's Avatar
    Join Date
    Nov 2002
    Location
    Karachi
    Posts
    1,308

    Hiding parent nodes

    Hello everybody,

    I have a treeview control in my application and a hierarchy of sub-nodes. Application works on rights. If user doesnt have rights to see a particular screen, the treeview node hides and user doesn't know there is some option of this screen in the application. Suppose I have a parent treeview node "Administrator", with a sub-node "Setup". "Setup" contains three more nodes, "Backup","Restore", "Reset". If user doesn't have rights to see all three Backup, Restore and Reset screens, these options hide but user can see "Setup" node and "Administrator" node.

    I need to traverse all the nodes and if all the child nodes of a node are not present(treeNode.Remove()), I want to hide/remove the parent node of that sub-nodes.

    Any ideas ??

    Thanks
    Last edited by usamaalam; Jun 3rd, 2005 at 12:44 AM.

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