Databinding NULL Value To A Checkbox
Posted on 2006-06-30
The Following line works if the value in the database is a 0 or 1
chkCrown.DataBindings.Add("Checked", dsPipeline, "PipelineDS.Crown")
If a NULL is present then I get:
Object cannot be cast from DBNull to other types.
which seems reasonable.
I would like the checkbox to go to an
Indeterminate checkstate if a NULL is encountered. How would I do this?