web analytics

How to collapse a TreeNode and its children?

Options

codeling 1595 - 6639
@2017-11-13 08:56:28

The method TreeNode.Collapse(Boolean) can be used to collapse a TreeNode and optionally its children.

  • passing false value when want to collapse itself and its children
  • passing true value when you want to collapse a node but leave its child nodes in their expanded state.

 

@2017-11-13 08:58:53

The TreeView.CollapseAll() method collapses all the TreeNode objects, including all the descendant tree nodes in the TreeView control.

Comments

You must Sign In to comment on this topic.


© 2024 Digcode.com