Skip to main content
A newer version of this page is available. .

DataControlBase.AutoGenerateColumns Property

Gets or sets whether columns should be created automatically for all fields in a data source. This is a dependency property.

Namespace: DevExpress.UI.Xaml.Grid

Assembly: DevExpress.UI.Xaml.Grid.v19.2.dll

Declaration

[CloneDetailMode(CloneDetailMode.Skip)]
public bool AutoGenerateColumns { get; set; }

Property Value

Type Description
Boolean

true, to automatically create columns for all fields in a data source; otherwise, false.

Remarks

If the AutoGenerateColumns property is set to true, the DataControlBase.PopulateColumns method is automatically called after a grid has been bound to a data source. The DataControlBase.PopulateColumns method creates columns for all fields in a data source and adds them to the GridControl.Columns collection.

To prevent grid columns from being created automatically, set the AutoGenerateColumns property to false.

See Also