My first guess would be that it has something to do with both controls
sharing a common DataSource reference.
Try cloning the DataTable, so each ComboBox has equivalent, but
physically different, bound DataTables:
For instance, if your DataTable is called dt:
ComboA.DataSource = dt.Clone()
ComboB.DataSource = dt.Clone()
All of this is based upon the assumption (which may be incorrect) that
bound data container events may play a role in the triggerring of
certain control events. In general, it's usually safer to avoid
letting multiple objects share common references, unless you have a
specific reason to do so.
I hope this is useful...
>I have a vb.net 1.1 winforms app and have several combo boxes on a form 2
>combos have the same data and are populated from the same data table using
[quoted text clipped - 7 lines]
>
>Thanks.
moondaddy - 25 Sep 2004 06:11 GMT
Yes, this fixed the problem. actually just before I got your msg I tried
something similar such as creating a new dataset and merging the table into
it. I think cloning may be better. anyway, this worked, but I hope this
can get fixed in the future because if I need to update the dataset client
side and a bunch of controls are using the dataset as a datasource, then
every time the dataset gets updated, all the controls would have to be
rebound again which defeats some of the benefit of ado dataset and binding
them to controls where the data in the control stays in sync with the
dataset.
Thanks for the reply.

Signature
moondaddy@nospam.com
> My first guess would be that it has something to do with both controls
> sharing a common DataSource reference.
[quoted text clipped - 26 lines]
> >
> >Thanks.
Stephany Young - 26 Sep 2004 09:23 GMT
I think that cloning datatables or creating new datatables is overkill.
This is what dataviw objects are designed for.
If you bind multiple controls to a databale then then when the current
pointer in the table moves then all the bound controls will reflect that
movement.
If you have a dataview for each control then the current pointer moves in
the dataview and not the datatable, thus making each control independent but
still getting it's list from the same physical data but via a different
logical path.
> Yes, this fixed the problem. actually just before I got your msg I tried
> something similar such as creating a new dataset and merging the table into
[quoted text clipped - 43 lines]
> > >
> > >Thanks.
Mark Mischke - 27 Sep 2004 16:04 GMT
Ah, good point. DataViews are definitely a better approach...
>I think that cloning datatables or creating new datatables is overkill.
>
[quoted text clipped - 58 lines]
>> > >
>> > >Thanks.
moondaddy - 29 Sep 2004 04:04 GMT
Thanks! That's really good to know. I thought I was saving steps by just
binding straight to the table, but I know better now.

Signature
moondaddy@nospam.com
> I think that cloning datatables or creating new datatables is overkill.
>
[quoted text clipped - 58 lines]
> > > >
> > > >Thanks.