how to make a treeview node invisible using the code in C#
-
hi i want to hide some of the nodes of the treeview based on some condition how can we implement that. There is no such property for a node to make invisible. thanks.
-
hi i want to hide some of the nodes of the treeview based on some condition how can we implement that. There is no such property for a node to make invisible. thanks.
You could just override the DrawNode method, and based on a custom treenode tag or property, e.g IsInvisible, decide if the node must be drawn. Diego Valdevino.
-
You could just override the DrawNode method, and based on a custom treenode tag or property, e.g IsInvisible, decide if the node must be drawn. Diego Valdevino.
in my project i nedd the first root node invisible, my solution was stablishing margin-top:-30px, i tried finding on javascript but it didn't caught the css style neither the element.style.display="none" neither the element.style.visibility="hidden" good luck