disabling threestate of checkbox in datagrid (datacolumn)

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
 
S

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
 
D

Dominique Vandensteen

maybe try to set allownull property of the columnstyle
(datagridboolcolumn)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top