<div class="meta" robots="noindex">

</div>

# ListBox.CellState

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<div class="warning">

<div class="title">

Warning

</div>

This item was deprecated in version 2019r2. Please use `DesktopListBox.CellCheckboxStateAt<desktoplistbox.cellcheckboxstateat>` as a replacement.

</div>

## Description

Used to get or set the state of the cell with the coordinates of *row*, *column* (zero-based). This assumes that the passed cell is a CheckBox cell. Use the CellType property to set a cell to a CheckBox cell. CheckedStates Enumeration is an `Enum</api/data_types/enumeration>` of the `CheckBox</api/deprecated/checkbox>` class.

## Sample code

The <span class="title-ref">CellState</span> method enables you to get or set the value of a tri-state Checkbox cell. Any cell of type TypeCheckbox box can store one of three values: Checked, Unchecked, and Indeterminate.

To set up a cell as TypeCheckbox, use code such as this in the Open event:

``` xojo
Me.CellType(1, 0) = ListBox.TypeCheckBox
```

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

To change the state of the cell, use the CheckedStates enum of the `CheckBox</api/deprecated/checkbox>` control:

``` xojo
ListBox1.CellState(1, 0) = Checkbox.CheckedStates.Indeterminate
```

## Compatibility

All projects types on all supported operating systems.
