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

TreeList.NodeHtmlTemplate Property

Specifies the default HTML-CSS template for nodes.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.TreeList

#Declaration

public HtmlTemplate NodeHtmlTemplate { get; }

#Property Value

Type Description
HtmlTemplate

The default HTML-CSS template for nodes.

#Remarks

The WinForms TreeList control supports HTML/CSS templates and allows you to generate unique custom layouts for nodes. Use the NodeHtmlTemplate property to specify the default HTML-CSS template for nodes.

Node HTML Template - WinForms TreeList

You can also create different HTML templates for nodes, add them to the HtmlTemplates collection, and handle the QueryNodeTemplate event to assign the templates to nodes based on a condition.

Run Demo: HTML/CSS Templates in TreeList

See Also