asp.net.ph

TreeView.TreeNodeExpanded Event

System.Web.UI.WebControls Namespace   TreeView Class


.NET Framework version 2.0

Occurs when a node is expanded in a TreeView control.

[ VB ]
Public Event TreeNodeExpanded As TreeNodeEventHandler

[ C# ]
public event TreeNodeEventHandler TreeNodeExpanded;

[ C++ ]
public: __event TreeNodeEventHandler* TreeNodeExpanded;

In [ JScript ], you can handle the events defined by a class, but you cannot define your own.

Remarks

The TreeNodeExpanded event is raised whenever a node in a TreeView control is expanded.

This allows you to provide an event-handling method that performs a custom routine, such as change the image for a node, whenever this event occurs.

NOTE: If the SelectAction property for a node is set to Expand or SelectExpand, the TreeTreeNodeExpanded event is also raised when that node is clicked in the TreeView control.

Event Data

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.

See Also

TreeView Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph