Hi All,
I have a treeview .I need to invisible/hide a particular node in that treeview.
Do we have any property for this?
I am doing this in VB.Net.
Thanks alot in advance.
There is a visible property in the treenode set that to false.
Hi,
Thanks for your quick reply.
We do not have visible property for the tree node.I am using 2.0.
Can you suggest me please..
Thanks a lot in advance.
What are your criterias for setting visibility of the nodes? If you want to show/hide nodes based on users, follow this link: http://blogs.msdn.com/dannychen/archive/2006/03/16/553005.aspx
Thanks for your reply..
I need to hide some of the nodes in the treeview,it's not based on the users.
lokanadham: I need to hide some of the nodes in the treeview,it's not based on the users.
You cannot hide the treenodes directly, but you can use the remove method of the treevirew to remove the nodes that you do not want to display on the page.
You can refer this msdn article: http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.treenodecollection.remove.aspx
Hope it helps.