For Programmers: Free Programming Magazines  


Home > Archive > ASP .NET Datagrid Control > March 2006 > checkbox bind with 0 = checked?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author checkbox bind with 0 = checked?
Maarten

2006-03-31, 7:03 pm

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


Scott M.

2006-03-31, 7:03 pm

[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" <Patatm@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
>



Maarten

2006-03-31, 7:03 pm

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

"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" <Patatm@mayo.com> wrote in message
> news:e6xdjbQVGHA.4248@TK2MSFTNGP10.phx.gbl...
>
>



sirfunusa@hotmail.com

2006-03-31, 7:03 pm

Run the stored procedure. And whole column? Is this a grid with a
checkbox column?

Set breakpoints on ItemDataBind, ItemCreated, etc.

Maarten

2006-03-31, 7:03 pm

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,


<sirfunusa@hotmail.com> wrote in message
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.
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com