DataGridView.AutoGenerateColumnsMode Property

Gets or sets whether columns should be automatically created for fields of the underlying data source, depending on whether the grid contains any columns.

Namespace: DevExpress.XamarinForms.DataGrid

Assembly: DevExpress.XamarinForms.Grid.dll


public AutoGenerateColumnsMode AutoGenerateColumnsMode { get; set; }

Property Value

Type Description

A value that specifies the way columns are generated.


Set the AutoGenerateColumnsMode property to None to prevent columns from being automatically created. If you need to cancel the generation of an individual column, use the DataGridView.AutoGeneratingColumn event. This event also allows you to customize an auto-generated column at the time it is created.

See Also