Skip to main content
All docs

TreeViewControl.NodeDoubleClick Event

Occurs when a user double-clicks a node.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v22.1.dll


public event NodeDoubleClickEventHandler NodeDoubleClick

Event Data

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


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"
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