System.Web.UI.WebControls Namespace TreeView Class
.NET Framework version 2.0
Occurs when a check box in a TreeView control changes state between posts to the server.
[ VB ]
Public Event TreeNodeCheckChanged As TreeNodeEventHandler
[ C# ]
public event TreeNodeEventHandler TreeNodeCheckChanged;
[ C++ ]
public: __event TreeNodeEventHandler* TreeNodeCheckChanged;
In [ JScript ], you can handle the events defined by a class, but you cannot define your own.
The TreeNodeCheckChanged event is raised whenever a check box in a TreeView control changes state between posts to the server.
This allows you to provide an event-handling method that performs a custom routine, such as updating a database or the displayed TreeView content, whenever this event occurs.
NOTE: Even though the TreeNodeCheckChanged event is fired on post back, changing the state of a check box in a TreeView does not automatically cause a post back.
The method assigned to handle the event is passed an argument of type TreeNodeEventArgs object containing data related to this event. The following TreeNodeEventArgs properties provide information specific to this event.
Property |
Description |
Node |
Gets the node that raised the event. |
TreeView Members