Home All Groups Group Topic Archive Search About

combobox don't update value

Author
24 May 2006 8:06 PM
Jose
I have a combobox with two possible values:
ONE
TWO

when i was pushed my save button save all values of my forms but this value
ONE or TWO don't

my code is:
ComboBox3.DataBindings.Add("SelectedValue", dset, "tabla.status")

Me.ComboBox3.Items.AddRange(New Object() {"ONE", "TWO"})


Please help me.

Author
25 May 2006 4:40 AM
+Vice
Looks fine to me but I think you have to add the range before you bind the
control, so re-arrange your code to see if it works.

Show quoteHide quote
"Jose" <josenospam@unica.com> wrote in message
news:ePzzf22fGHA.4976@TK2MSFTNGP02.phx.gbl...
>I have a combobox with two possible values:
> ONE
> TWO
>
> when i was pushed my save button save all values of my forms but this
> value ONE or TWO don't
>
> my code is:
> ComboBox3.DataBindings.Add("SelectedValue", dset, "tabla.status")
>
> Me.ComboBox3.Items.AddRange(New Object() {"ONE", "TWO"})
>
>
> Please help me.
>
Author
25 May 2006 12:36 PM
Jose
Thanks

Show quoteHide quote
"+Vice" <tonyp***@earthlink.net> escribió en el mensaje
news:OK80VV7fGHA.1324@TK2MSFTNGP04.phx.gbl...
> Looks fine to me but I think you have to add the range before you bind the
> control, so re-arrange your code to see if it works.
>
> "Jose" <josenospam@unica.com> wrote in message
> news:ePzzf22fGHA.4976@TK2MSFTNGP02.phx.gbl...
>>I have a combobox with two possible values:
>> ONE
>> TWO
>>
>> when i was pushed my save button save all values of my forms but this
>> value ONE or TWO don't
>>
>> my code is:
>> ComboBox3.DataBindings.Add("SelectedValue", dset, "tabla.status")
>>
>> Me.ComboBox3.Items.AddRange(New Object() {"ONE", "TWO"})
>>
>>
>> Please help me.
>>
>
>