property Items.CellHasCheckBox(Index as Long, ColIndex as Variant) as Boolean
Retrieves or sets a value indicating whether the cell has associated a checkbox.

TypeDescription
Index as Long A long expression that indicates the index of the item.
ColIndex as Variant A long expression that indicates the column's index, or a string expression that indicates the column's caption or column's key.
Boolean A boolean expression indicating whether the cell has associated a checkbox.

Use the CellHasCheckBox property to add a checkbox to the cell. Use the CellHasRadioButton property to add a radio button to the cell.  A cell can displayed only a check box or a radio button at one time. If the user clicks a check or a radio button, the CellStateChanged event is fired.  Use the CellState property to change the cell's state. Use the CheckImage property to change the check box appearance. Use the Def property to assign check boxes for all cells in the column. Use the CellImage property to add a single icon to a cell. Use the CellImages property to assign multiple icons to a cell. Use the CellPicture property to load a custom size picture to a cell. Use the FilterType property on exCheck to filter for checked or unchecked items.

The following VB sample adds a checkbox to the focused cell:

With List1.Items
    .CellHasCheckBox(.FocusItem, 0) = True
End With

The following C++ sample adds a checkbox to the focused cell:

#include "Items.h"
CItems items = m_list.GetItems();
items.SetCellHasCheckBox( items.GetFocusItem(), COleVariant( (long)0 ), TRUE );

The following C# sample adds a checkbox to the focused cell:

axList1.Items.set_CellHasCheckBox(axList1.Items.FocusItem, 0, true);

The following VB.NET sample adds a checkbox to the focused cell:

With AxList1.Items
    .CellHasCheckBox(.FocusItem, 0) = True
End With

The following VFP sample adds a checkbox to the focused cell:

with thisform.List1.Items
	.CellHasCheckBox(.FocusItem,0) = .t.
endwith