TreeNode.ToggleExpandState Method
.NET Framework 3.0
Alternates between the expanded and collapsed state of the node.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
Use the ToggleExpandState method to alternate between an expanded and a collapsed state for the node. For example, if the node is collapsed, calling the ToggleExpandState method expands the node, and vice versa.
Note: |
|---|
| As an alternative, you can set the Expanded property directly. |
Community Additions
ADD
Show:
Note: