Simple TDBCheckbox Question

Giganews Newsgroups
Subject:Simple TDBCheckbox Question
Posted by: Debbie Erickson
Date:Mon, 31 Aug 2009

Hello.  :)  I'm not sure if this question belongs under "VCL" or "database".

I have a simple form with an ado connection, a table, a datasource and 2 checkboxes and a few other fields, as well as a dbnavigator.  The table referred to by the datasource currently has no records.  When I open the table in the FormShow event, I hoped to see blank unchecked checkboxes.  What I do see are greyed out checkmarks, as if the field had been checked then made disabled.  It's probably because nothing's been initialized yet to 0 or 1.  The checkboxes are cleared as soon as I insert a record.  I
know that it is cleared because I have an OnNewRecord event and I initialize both fields to zero.  Is there any way to make the checkboxes unmarked when the form is shown and there are no records?

Thanks!
Debbie Erickson

Replies