BaseCheckedListBoxControl.SetItemChecked(Int32, Boolean) Method

Sets the specified item’s state to checked or unchecked.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v21.2.dll


public virtual void SetItemChecked(
    int index,
    bool value


Name Type Description
index Int32

An integer value that specifies the zero-based index of the item whose check state should be changed.

value Boolean

true, if the item is checked; false, if the item is unchecked.


Use the SetItemChecked method to set an item’s state to checked or unchecked. The ItemCheck event raises if the state is changed.

To set an item’s check state before the form is loaded, call the ForceInitialize method before the SetItemChecked method.

See Also