Home All Groups Group Topic Archive Search About
Author
31 Mar 2006 9:05 PM
Maarten
I have a bound-checkbox. The database value = 0 but the checkbox got
checked?
Why is that?
What value should be in the database for being not checked then?


tia

Author
31 Mar 2006 10:06 PM
Scott M.
[VB.NET]

0 = False
-1 (or any non-zero value = True)

If you are getting a checked checkbox, I would look into the possibility
that the actual field data you are using to control it isn't what you think
it is.


Show quoteHide quote
"Maarten" <Pat***@mayo.com> wrote in message
news:e6xdjbQVGHA.4248@TK2MSFTNGP10.phx.gbl...
>I have a bound-checkbox. The database value = 0 but the checkbox got
>checked?
> Why is that?
> What value should be in the database for being not checked then?
>
>
> tia
>
Author
31 Mar 2006 10:23 PM
Maarten
How can I check that the best then?
(besides running the stored procedure in SQL server and see that 0 is
returned for that (whole)column?)
Can I debug/see what the databinding presents as value?

thank you

Show quoteHide quote
"Scott M." <s-mar@nospam.nospam> wrote in message
news:OE6028QVGHA.5044@TK2MSFTNGP09.phx.gbl...
> [VB.NET]
>
> 0 = False
> -1 (or any non-zero value = True)
>
> If you are getting a checked checkbox, I would look into the possibility
> that the actual field data you are using to control it isn't what you
> think it is.
>
>
> "Maarten" <Pat***@mayo.com> wrote in message
> news:e6xdjbQVGHA.4248@TK2MSFTNGP10.phx.gbl...
>>I have a bound-checkbox. The database value = 0 but the checkbox got
>>checked?
>> Why is that?
>> What value should be in the database for being not checked then?
>>
>>
>> tia
>>
>
>
Author
31 Mar 2006 11:01 PM
sirfunusa
Run the stored procedure. And whole column? Is this a grid with a
checkbox column?

Set breakpoints on ItemDataBind, ItemCreated, etc.
Author
1 Apr 2006 12:09 AM
Maarten
I am sorry!!
You where right the first time.
Stupid me!! looking at the wrong column (SQL) the last couple of hours!!!

Again sorry for wasting your time.
Problem fixed.

Many thanks for your effort

Regards,


<sirfun***@hotmail.com> wrote in message
Show quoteHide quote
news:1143846097.028531.46970@i39g2000cwa.googlegroups.com...
> Run the stored procedure. And whole column? Is this a grid with a
> checkbox column?
>
> Set breakpoints on ItemDataBind, ItemCreated, etc.
>