|
-
Jun 2nd, 2005, 08:38 AM
#1
Thread Starter
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|