System.Web.UI.WebControls Namespace TreeView Class
.NET Framework version 2.0
Occurs when a data item is bound to a node in a TreeView control.
[ VB ]
Public Event TreeNodeDataBound As TreeNodeEventHandler
[ C# ]
public event TreeNodeEventHandler TreeNodeDataBound;
[ C++ ]
public: __event TreeNodeEventHandler* TreeNodeDataBound;
In [ JScript ], you can handle the events defined by a class, but you cannot define your own.
The TreeNodeDataBound event is raised whenever a data item is bound to a node in a TreeView control.
This allows you to provide an event-handling method that performs a custom routine, such as change the image for a node when some condition is met, whenever this event occurs.
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