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