Back to Devexpress

TreeList.HierarchyColumn Property

windowsforms-devexpress-dot-xtratreelist-dot-treelist-8e8c8170.md

latest2.6 KB
Original Source

TreeList.HierarchyColumn Property

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

Namespace : DevExpress.XtraTreeList

Assembly : DevExpress.XtraTreeList.v25.2.dll

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

Declaration

csharp
[DefaultValue(null)]
[DXCategory("Data")]
public TreeListColumn HierarchyColumn { get; set; }
vb
<DXCategory("Data")>
<DefaultValue(Nothing)>
Public Property HierarchyColumn As TreeListColumn

Property Value

TypeDefaultDescription
TreeListColumnnull

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.

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

csharp
treeList1.HierarchyColumn = colLOCATION;
vb
treeList1.HierarchyColumn = colLOCATION

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

See Also

HierarchyFieldName

RowImagesShowMode

TreeList Class

TreeList Members

DevExpress.XtraTreeList Namespace