DxDataGridCheckBoxColumn.CheckType Property

Specifies how to display column values.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v21.1.dll

Declaration

[Parameter]
public CheckType CheckType { get; set; }

Property Value

Type Default Description
CheckType

Checkbox

The checkbox type.

Available values:

Name Description
Checkbox

A standard checkbox.

Switch

A toggle switch.

Remarks

When the CheckType property is set to CheckType.Checkbox, column values are displayed as standard checkboxes. In the edit form, users can choose between the checked, unchecked, and indeterminate states.

<DxDataGrid DataAsync="@ForecastService.GetForecastAsync" ...>
    ...
    <DxDataGridCheckBoxColumn Field="@nameof(WeatherForecast.Precipitation)">
    </DxDataGridCheckBoxColumn>
</DxDataGrid>

Data Grid CheckBoxColumn Checkboxes

Set the CheckType property to CheckType.Switch to display column values as toggle switches. In the edit form, users can select between the checked and unchecked states. The indeterminate state is not available in this mode.

<DxDataGrid DataAsync="@ForecastService.GetForecastAsync" ...>
    ...
    <DxDataGridCheckBoxColumn Field="@nameof(WeatherForecast.Precipitation)" CheckType="CheckType.Switch">
    </DxDataGridCheckBoxColumn>
</DxDataGrid>

Data Grid CheckBoxColumn Switches

See Also