public virtual void ToggleSubItemCheckBox(object rowObject, OLVColumn column)
{
CheckState currentState = column.GetCheckState(rowObject);
CheckState newState = CalculateToggledCheckState(column, currentState);
SubItemCheckingEventArgs args = new SubItemCheckingEventArgs(column, this.ModelToItem(rowObject), column.Index, currentState, newState);
this.OnSubItemChecking(args);
if (args.Canceled)
return;
switch (args.NewValue) {
case CheckState.Checked:
this.CheckSubItem(rowObject, column);
break;
case CheckState.Indeterminate:
this.CheckIndeterminateSubItem(rowObject, column);
break;
case CheckState.Unchecked:
this.UncheckSubItem(rowObject, column);
break;
}
}