Home All Groups Group Topic Archive Search About
Author
9 Sep 2006 5:37 PM
reidarT
I have an sql db with one field set as bit .
I have a window form with a datagrid.
The field is shown as a checkbox.
My problem is that the value doesn't show in the field
They are all blank even if there are both true and false in the table.
Am I using a wrong kind of field type in my table?

reidarT

Author
9 Sep 2006 5:50 PM
Chris
reidarT wrote:
> I have an sql db with one field set as bit .
> I have a window form with a datagrid.
> The field is shown as a checkbox.
> My problem is that the value doesn't show in the field
> They are all blank even if there are both true and false in the table.
> Am I using a wrong kind of field type in my table?
>
> reidarT
>
>

No, bit is the right field.  Show us code how you set the value and get
it from the db.
Author
10 Sep 2006 4:39 AM
Joseph Bittman MVP MCSD
Sept. 9, 2006

Assuming Chris is right that Bit is OK (I don't know personally), then are
you sure that you have your checkbox column "bound" correctly to the DB
column?

--

                       Joseph Bittman
     Microsoft Certified Solution Developer
Microsoft Most Valuable Professional -- DPM

Blog/Web Site: http://CactiDevelopers.ResDev.Net/
Show quoteHide quote
"Chris" <no@spam.com> wrote in message
news:OxCyuhD1GHA.4448@TK2MSFTNGP04.phx.gbl...
> reidarT wrote:
>> I have an sql db with one field set as bit .
>> I have a window form with a datagrid.
>> The field is shown as a checkbox.
>> My problem is that the value doesn't show in the field
>> They are all blank even if there are both true and false in the table.
>> Am I using a wrong kind of field type in my table?
>>
>> reidarT
>>
>>
>
> No, bit is the right field.  Show us code how you set the value and get it
> from the db.
Author
10 Sep 2006 2:43 AM
Dennis
Can you set the field as a Boolean type?
--
Dennis in Houston


Show quoteHide quote
"reidarT" wrote:

> I have an sql db with one field set as bit .
> I have a window form with a datagrid.
> The field is shown as a checkbox.
> My problem is that the value doesn't show in the field
> They are all blank even if there are both true and false in the table.
> Am I using a wrong kind of field type in my table?
>
> reidarT
>
>
>