BaseCheckedListBoxControl.SetItemChecked(Int32, Boolean) Method
Changes the state of the item to checked or unchecked.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v19.1.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
index | Int32 | An integer value representing the zero-based index of the item to be changed. If it is negative or exceeds the last available index, the method will have no effect. |
value | Boolean | true to check the item, false to uncheck it. |
Remarks
This method raises the BaseCheckedListBoxControl.ItemCheck event if the item’s state has been changed.
If you need to change item states of a databound BaseCheckedListBoxControl control during form loading, you need to call the BaseListBoxControl.ForceInitialize method beforehand.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the SetItemChecked(Int32, Boolean) method.
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.