Skip to main content

TreeListOptionsBehavior.AutoPopulateColumns Property

Gets or sets whether columns should be automatically created for all the fields in the underlying data source when the Tree List doesn’t contain any columns.

Namespace: DevExpress.XtraTreeList

Assembly: DevExpress.XtraTreeList.v24.2.dll

Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool AutoPopulateColumns { get; set; }

Property Value

Type Default Description
Boolean true

true if the columns are created automatically when the Tree List doesn’t contain any columns; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to AutoPopulateColumns
TreeList
.OptionsBehavior .AutoPopulateColumns

Remarks

This property determines whether the TreeList.PopulateColumns method is called automatically when a data source is assigned to the Tree List which doesn’t contain any columns. The TreeList.PopulateColumns method creates TreeListColumn objects for all the fields in the underlying data source and make these columns visible.

Set the AutoPopulateColumns property to false to prevent columns from being automatically created. In this case columns should be manually added to the TreeList.Columns collection.

See Also