GridControl.AutoGenerateColumnsMode Property
Gets or sets how columns should be automatically created for fields of the underlying data source, depending on whether the grid contains any columns.
Namespace: DevExpress.Mobile.DataGrid
Assembly: DevExpress.Mobile.Grid.v18.2.dll
#Declaration
[XtraSerializableProperty]
public AutoGenerateColumnsMode AutoGenerateColumnsMode { get; set; }
#Property Value
Type | Description |
---|---|
Auto |
An Auto |
Available values:
Name | Description |
---|---|
Auto | Creates columns for all fields of a data source if the grid does not contain any columns. |
Add | Creates columns for all fields of a data source, preserving the columns the grid already contains. |
Replace | Creates columns for all fields of a datasource, removing columns the grid already contains. |
None | Does not create columns. |
#Remarks
Important
This documentation topic describes legacy technology. We no longer develop new functionality for the Grid
Set the AutoGenerateColumnsMode property to AutoGenerateColumnsMode.None to prevent columns from being automatically created.