Home All Groups Group Topic Archive Search About

combobox datasource...

Author
12 Dec 2006 5:44 AM
Soddy
Hello!

I can populate, i.e., a combobox with a dataset using the .datasource,
etc...  But when I'm changing the values in the combobox (based on some other
criteria) the previous values are remaining in the combobox.  So, I believe I
need to 'clear' the datasource, etc properties of the combobox before
resetting them...  Not sure how to clear the cbo.datasource, cbo.ValueMember,
and cbo.SelectedValue properties.

--
Thanks!
Soddy

Author
12 Dec 2006 6:11 AM
Cor Ligthert [MVP]
Soddy,

You need to clear the datasource. That is the datatable that you tell the
datasource is.

datatable.clear

Cor

Show quoteHide quote
"Soddy" <So***@discussions.microsoft.com> schreef in bericht
news:5A17306D-68EF-4F9A-8EB6-E6C0558370DC@microsoft.com...
> Hello!
>
> I can populate, i.e., a combobox with a dataset using the .datasource,
> etc...  But when I'm changing the values in the combobox (based on some
> other
> criteria) the previous values are remaining in the combobox.  So, I
> believe I
> need to 'clear' the datasource, etc properties of the combobox before
> resetting them...  Not sure how to clear the cbo.datasource,
> cbo.ValueMember,
> and cbo.SelectedValue properties.
>
> --
> Thanks!
> Soddy