Skip to main content
All docs
V23.2

CompatibilitySettings.DisableEditorAutoGenerationInGrid Property

Specifies whether to disable automatic editor generation in DxGrid.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public static bool DisableEditorAutoGenerationInGrid { get; set; }

Property Value

Type Description
Boolean

true to disable automatic editor generation; false to enable automatic editor generation.

Remarks

Since v23.1, the Grid component automatically generates editors for columns based on associated data types. Automatic editor generation is accompanied by the following Grid behavior changes:

  • The Grid displays automatically generated editors in edit and filter rows.

  • In display mode, the Grid renders Boolean column values as read-only checkboxes.

  • When a column associated with the Enum data type is in the default sort mode, the Grid sorts column data by display text.

Automatic Generation is Enabled

In previous versions, the component does not generate editors for columns and behaves as follows:

Automatic Generation is Disabled

To revert to the previous behavior, specify the DisableEditorAutoGenerationInGrid property in the Program.cs file before you register DevExpress resources:

// ...
DevExpress.Blazor.CompatibilitySettings.DisableEditorAutoGenerationInGrid = true;
builder.Services.AddDevExpressBlazor();
// ...
app.Run();

Alternatively, you can use the CompatibilityMode property to revert to v22.2 behavior.

// ...
DevExpress.Blazor.CompatibilitySettings.CompatibilityMode = DevExpress.Blazor.CompatibilityMode.v22_2;
builder.Services.AddDevExpressBlazor();
// ...
app.Run();
See Also