Skip to main content

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

Gets or sets the column in which tree list nodes display their expand/collapse buttons.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

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

#Declaration

[DefaultValue(null)]
[DXCategory("Data")]
public TreeListColumn HierarchyColumn { get; set; }

#Property Value

Type Default Description
TreeListColumn null

A TreeListColumn object specifying the column in which tree list nodes display their expand/collapse buttons.

#Remarks

By default, the HierarchyColumn is set to null. In this case, tree list nodes that have children display their expand/collapse buttons in the first column, as in the figure below.

TreeList_HierarchyColumn

Use the HierarchyColumn property to explicitly specify the column that will display the node expand/collapse buttons.

treeList1.HierarchyColumn = colLOCATION;

TreeList_HierarchyColumn_Custom

You can also specify the hierarchy column with the TreeList.HierarchyFieldName property. The TreeList.HierarchyFieldName property has priority over the HierarchyColumn property.

See Also