Method SetItemChecked
SetItemChecked(int, bool)
Checks or clears the check state for the specified item.
public virtual bool SetItemChecked(int index, bool value)
Parameters
indexintThe zero-based index of the item in the control to set or clear the check state.
valuebooltrueto check the specified item; otherwise, false.
Returns
Remarks
This method repaints control and raises events. Use SetItemCheckedCore(int, bool) method to change checked state without raising events and repainting the control.