Re: Databinding Checkboxes



Mike,

What if your user unchecks the checkbox, what is than the action?

Cor


"Mike" <pcgurunospam@xxxxxxxxxxxxx> schreef in bericht
news:nQx3f.58$6l.32@xxxxxxxxxxxxxxxxxxxxxxxxx
> Cor,
>
> We agree - I do not prefer to handle it this way. I just don't know enough
> to do it a better way. I'm thinking you might, though. :)
>
> Can you offer me some suggestions?
>
> Thanks!
> Mike
>
> "Cor Ligthert [MVP]" <notmyfirstname@xxxxxxxxx> wrote in message
> news:u%23rTQSC0FHA.128@xxxxxxxxxxxxxxxxxxxxxxx
>> Mike,
>>
>> You can not bind to nothing.
>>
>> Therefore as you want it to do your way, than it is just old checking.
>>
>> If mydatarow Is Nothing then
>> mycheckbox.checked = true
>> end if
>>
>> And using the checkstate change event to create newrows.
>>
>> Although this is in my opinion a strange and probably quick to spaghetti
>> and errors leading solution. (You have by instance to protect by
>> disabling that checkbox (what looks weird) the use of that checkbox
>> again.
>>
>> However just my thought,
>>
>> Cor
>>
>>
>
>


.



Relevant Pages

  • Re: Databinding Checkboxes
    ... Mike ... > that checkbox the use of that checkbox again. ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Show records in ASP.NET
    ... Cor ... > I need to display some records from a table, and I need to insert in every ... > row a checkbox, to select some of those records. ... > updates in the table based on those records selected. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Show records in ASP.NET
    ... Cor ... > I need to display some records from a table, and I need to insert in every ... > row a checkbox, to select some of those records. ... > updates in the table based on those records selected. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Show records in ASP.NET
    ... Cor ... > I need to display some records from a table, and I need to insert in every ... > row a checkbox, to select some of those records. ... > updates in the table based on those records selected. ...
    (microsoft.public.dotnet.general)
  • Re: Simple Label and TextBox question
    ... I am alwasy asking myself why there is a label on that checkbox (and radiobutton). ... Cor ...
    (microsoft.public.dotnet.languages.vb)