I am using the DataGridView and have a few DataGridViewCheckBoxColumns setup, two of which have the ThreeState property set to True.
For some rows in my grid, I only want the checkbox to be either Checked or Indeterminate. Unchecked should never be available to the user. But if the user clicks the checkbox repeatedly, it goes from checked to Indeterminate to unchecked. I just want it to go checked, indeterminate, checked, indeterminate etc.
Is there a way to turn stop a checkbox from being checked/unchecked when clicked (similar to the AutoCheck property on the standard windows forms Checkbox control), or is there an event I can use to cancel the checked change of the DataGridViewCheckBoxCell?
I have tried to programatically force the checked cell from unchecked to checked or indeterminate, but the UI never reflects this.