Hiding a TreeView node

S

Shafia

Hi,

How do I hide a TreeNode programmatically? the IsVisible property of a node
is readonly. Any suggestions?

Thanks in Advance,
Shafia
 
B

Brock Allen

If you're talking about the 2.0 TreeView, the TreeNode isn't a control so
it doesn't have a Visible property (as you've discovered). It's just a data
structure for telling the tree what to render. So, the absence of the TreeNode
in the TreeView's Node's collection will prevent it from displaying.
 
G

Gabriel Lozano-Morán

The IsVisible() property returns true when the parent node is expanded,
otherwise is returns false. There is no property to hide or display a node.

Gabriel Lozano-Morán
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,805
Latest member
ClydeHeld1

Latest Threads

Top