TreeListSettings.AutoGenerateColumns Property
Gets or sets whether columns are automatically created for all fields in the underlying data source.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
Property Value
Type | Description |
---|---|
Boolean | true to automatically create columns for all fields in the underlying data source; otherwise, false. |
Remarks
The AutoGenerateColumns property specifies which field’s data is rendered by the TreeList. By default, this property is set to true. This forces TreeList to render each field from the data source as a column. The order of columns is the same as the order of fields in the data source.
You can also manually control which columns are to appear in TreeList by setting the AutoGenerateColumns property to false. In this case, you should manually add columns to the TreeListSettings.Columns collection. The AutoGenerateColumns property cannot be set to true if this collection contains any columns.
Note
By default, service columns bound to the TreeListSettings.KeyFieldName and TreeListSettings.ParentFieldName data fields are not created. To automatically create columns for these data fields, enable the TreeListSettings.AutoGenerateServiceColumns option.