All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

TreeViewControl.NodeDoubleClick Event

Occurs when a user double-clicks a node.

Namespace: DevExpress.Xpf.Grid

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

Declaration

public event NodeDoubleClickEventHandler NodeDoubleClick
Public Event NodeDoubleClick As NodeDoubleClickEventHandler

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