disabling threestate of checkbox in datagrid (datacolumn)

  • Thread starter Thread starter Steven
  • Start date Start date
S

Steven

How can I disable the ThreeState of a checkbox in a datagrid datacolumn
(dataset)?

Because of the ThreeState the checkboxes in my datagrid can be in the states
'Checked', 'Unchecked', and 'Indeterminate' (checked + shaded).
I want to prevent the checkbox (datacolumn) from getting this last state.

How can this be done??

Thanks! Steven
 
Dominique,

Thanks for your answer!
That does solve the problem, but partially...
The indeterminate-state can still be selected/checked,
but when focus moves away from the checkbox,
a message appears that announces that the value is
incorrect and will be corrected.

So the AllowDBNull restricts the field from getting
a Null-value, but doesn't prevent the user from setting
the checkbox to the indeterminate-state...

How can this (checkbox ThreeState) be disabled?

Thanks! Steven
 
maybe try to set allownull property of the columnstyle
(datagridboolcolumn)
 
Back
Top