A newer version of this page is available. Switch to the current version.

ASPxGridLookup.AutoGenerateColumns Property

Gets or sets whether columns are automatically created for all fields in the underlying data source.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll


public bool AutoGenerateColumns { get; set; }
Public Property AutoGenerateColumns As Boolean

Property Value

Type Default Description


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


The AutoGenerateColumns property specifies which field's data is rendered by the editor's built-in ASPxGridView. By default, this property is set to true. This forces the editor 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 the dropdown ASPxGridView, by setting the AutoGenerateColumns property to false. In this case, you should manually add columns to the ASPxGridLookup.Columns collection.

See Also