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.NodeTemplate Property

Gets or sets the template that defines the node appearance. This is a dependency property.

Namespace: DevExpress.Xpf.Grid

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

Declaration

public DataTemplate NodeTemplate { get; set; }
Public Property NodeTemplate As DataTemplate

Property Value

Type Description
DataTemplate

The template that defines the node appearance.

Remarks

You can display custom content in data nodes. The NodeTemplate property allows you to specify the template that defines the appearance of data nodes.

If you have more than one node template, use the TreeViewControl.NodeTemplateSelector property to implement custom logic to choose the required template.

If you specify both the NodeTemplate and TreeViewControl.NodeTemplateSelector, the TreeViewControl uses the template returned by the template selector.

If the template selector returns null, the TreeViewControl uses the template specified by the NodeTemplate property.

See Also