Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TreeList.AfterFocusNode Event

Fires in response to focus being moved between nodes.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

#Declaration

public event NodeEventHandler AfterFocusNode

#Event Data

The AfterFocusNode event's data class is NodeEventArgs. The following properties provide information specific to this event:

Property Description
Node Gets the current Tree List node.

#Remarks

The AfterFocusNode event is raised when end-users move focus from one node to another, or in response to changing the TreeList.FocusedNode property via code. The event parameter’s NodeEventArgs.Node property represents the currently focused node.

The AfterFocusNode and TreeList.FocusedNodeChanged events are almost equivalent. They fire at the same point in time. However, unlike the AfterFocusNode event, the TreeList.FocusedNodeChanged event provides an OldNode parameter, which specifies the previously focused node.

See Also