All docs
V20.2
21.1 (EAP/Beta)
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.CustomNodeDisplayText Event

Allows you to customize the text displayed in nodes.

Namespace: DevExpress.Xpf.Grid

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

Declaration

public event TreeViewCustomNodeDisplayTextEventHandler CustomNodeDisplayText

Event Data

The CustomNodeDisplayText event's data class is DevExpress.Xpf.Grid.TreeList.TreeViewCustomNodeDisplayTextEventArgs.

Remarks

<dxg:TreeViewControl x:Name="treeview"
                     CustomNodeDisplayText="treeview_CustomNodeDisplayText"
                     ...>
void treeview_CustomNodeDisplayText(object sender, DevExpress.Xpf.Grid.TreeList.TreeViewCustomNodeDisplayTextEventArgs e) {
    if (e.DisplayText == "Operations") e.DisplayText = "Operations Department";
    if (e.Node.IsLast && e.Node.Level == 0) e.DisplayText = "NodeLast";
}
See Also