Skip to main content
All docs
V24.2

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

TreeViewControl.NodeDoubleClick Event

Occurs when a user double-clicks a node.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public event NodeDoubleClickEventHandler NodeDoubleClick

#Event Data

The NodeDoubleClick event's data class is DevExpress.Xpf.Grid.TreeList.NodeDoubleClickEventArgs.

#Remarks

The NodeDoubleClick event occurs after a user double-clicks a row. The event parameter’s RowDoubleClickEventArgs.HitInfo property returns the view element that has been double-clicked.

The following code sample copies the node value to the clipboard when a user double-clicks a node.

<dxg:TreeViewControl x:Name="treeview"
                     ShowAutoFilterNode="True"
                     NodeDoubleClick="treeview_NodeDoubleClick"/>
void treeview_NodeDoubleClick(object sender, DevExpress.Xpf.Grid.TreeList.NodeDoubleClickEventArgs e) {
    if (e.HitInfo.RowHandle >= 0) treeview.CopyToClipboard();
}

For information about hit testing, refer to the following DevExpress WPF Grid help topic: Hit Information.

See Also