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
"Dominique Vandensteen" <domi.vds_insert@tralala_tenforce.com> schreef in
bericht news:euchfGu%(E-Mail Removed)...
> set the AllowDBNull property of the DataColumn to false
>
>
> Dominique
>
>
> "Steven" <(E-Mail Removed)> wrote in message
> news:%23FLMaRt%(E-Mail Removed)...
> > 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
|