Hiding a TreeView node

  • Thread starter Thread starter Shafia
  • Start date Start date
S

Shafia

Hi,

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

Thanks in Advance,
Shafia
 
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.

-Brock
DevelopMentor
http://staff.develop.com/ballen
 
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

Back
Top