# CheckBox

## Content



## Display Checkbox for Boolean Values

FlexGrid, by default, uses the checkbox editor for representing the Boolean values. That is, when the DataType property of a Row or Column object is set to Bool type, a checkbox appears in the cells and user can toggle the value of an editable cell simply by clicking it.

![](https://cdn.mescius.io/document-site-files/images/2d49eac2-0942-4770-99ef-52b14e6815bd/images/checkbox-editor.png)

To disable this default behavior and display text value instead of a checkbox in a Bool type, you can set the [Format](/componentone/api/winui/online-winui/dotnet-api/C1.WinUI.Grid/C1.WinUI.Grid.GridColumn.Format.html) property of Row or Column object to string values.

Use the code below to set checkbox type editor in a WinUI FlexGrid column and configure it further.

```csharp
//Display the string values instead of displaying checkbox
flexGrid1.Columns["Active"].Format = "Yes;No";
```