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.v20.1.dll

Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool AutoPopulateColumns { get; set; }
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property AutoPopulateColumns As Boolean

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:

Library Object Type Path to AutoPopulateColumns
WinForms Controls GanttControl
.OptionsBehavior.AutoPopulateColumns
GanttControl
.OptionsBehavior.AutoPopulateColumns
ResourcesTree
.OptionsBehavior.AutoPopulateColumns
TreeList
.OptionsBehavior.AutoPopulateColumns
Reporting XRDesignFieldList
.OptionsBehavior.AutoPopulateColumns
XRDesignFieldList
.OptionsBehavior.AutoPopulateColumns
XRDesignReportExplorer
.OptionsBehavior.AutoPopulateColumns
XRDesignReportExplorer
.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