CheckEdit.CheckState Property
Gets or sets the editor’s check state.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v25.2.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
[DefaultValue(CheckState.Unchecked)]
[DXCategory("Appearance")]
public virtual CheckState CheckState { get; set; }
Property Value
| Type | Default | Description |
|---|---|---|
| CheckState | Unchecked | The check state. |
Remarks
CheckEdit supports the following modes:
- Two-State Mode
- The editor can be in the
CheckedorUncheckedstate. - Three-State Mode
- The editor can be in the following states:
Checked,Unchecked, orIndeterminate(grayed). Set the AllowGrayed property totrueto enable three-state mode.

| CheckState | Checked | EditValue |
|---|---|---|
Checked |
true |
true or ValueChecked (if specified) |
Unchecked |
false |
false or ValueUnchecked (if specified) |
Indeterminate |
true |
null (Nothing in VB.NET) or ValueGrayed (if specified) |
CheckEdit changes its states in the following order: Indeterminate → Unchecked → Checked.
Set the DefaultStateAfterIndeterminate property to Checked to activate the following order: Indeterminate → Checked → Unchecked.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the CheckState property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.