views:

14

answers:

0

I have a DataGridViewCheckBoxColumn. I want the users to be able to set the value of this column to true or false.

However, this column is only available if a different column has a specific value. When the column is not available, I set it to readonly and will set the value to indeterminate (null). However, the when the column is available, the user can set its value to indeterminate.

Is there some way of making it impossible for the user to set indeterminate values, or do I need to take the messy way of setting the ThreeState property every time I change the readonly property?