The requested page is not available for the requested platform. You are viewing the content for Default platform.

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

Declaration

[CloneDetailMode(CloneDetailMode.Skip)]
public bool AutoGenerateColumns { get; set; }
<CloneDetailMode(CloneDetailMode.Skip)>
Public Property AutoGenerateColumns As Boolean

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