Skip to main content

DataControlBase.AutoGenerateColumns Property

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

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v14.2.Core.dll

#Declaration

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

#Property Value

Type Description
AutoGenerateColumnsMode

An AutoGenerateColumnsMode enumeration value that specifies the way columns are generated.

#Remarks

This property specifies the way the DataControlBase.PopulateColumns method is working.

Set the AutoGenerateColumns property to AutoGenerateColumnsMode.None to prevent columns from being automatically created.

See Also