P
Phil
My form uses a dataset containing two tables, a base table
(Contact) and a lookup table (Insurer). My combobox is
bound as follows:
DataSource = datasetContact
DisplayMember = Insurer.InsurerName
ValueMember = Insurer.InsurerId
DataBindings.SelectedValue = Contact.InsurerId
It generally works fine. I am able to navigate records and
it displays the correct bound item. I can even update data
using the combobox and save it to the database. But, there
is a bug! When I first fill the dataset, the combobox
displays the first item in the dropdown list rather than
the item it is bound to. When I navigate to another record
and navigate back to it, the correct item is displayed in
the combobox.
Am I missing something here? How do I get the combobox to
display the correct bound item after the fill?
Help would be greatly appreciated. Thanks, Phil
****
PS
****
I found "Hemang Shah" <[email protected]> also asked this
question previously on 4th August and received no answer.
He said:
Hello Friends.
I have a form which is linked to a dataset of 3 tables.
One is the base table and the other 2 are look up tables.
Now when I scroll the records, the combo box i updated
properly showing the correct lookup.
But when I click update or load, the first item in the
combobox pops up even when that particular record dosen
thtat those selected..You know what I mean ?
I'm sure everyone would be having this problem and by now
there must b a well documented fix for this, can anyone
point me to the right direction ?
Thanks.
(Contact) and a lookup table (Insurer). My combobox is
bound as follows:
DataSource = datasetContact
DisplayMember = Insurer.InsurerName
ValueMember = Insurer.InsurerId
DataBindings.SelectedValue = Contact.InsurerId
It generally works fine. I am able to navigate records and
it displays the correct bound item. I can even update data
using the combobox and save it to the database. But, there
is a bug! When I first fill the dataset, the combobox
displays the first item in the dropdown list rather than
the item it is bound to. When I navigate to another record
and navigate back to it, the correct item is displayed in
the combobox.
Am I missing something here? How do I get the combobox to
display the correct bound item after the fill?
Help would be greatly appreciated. Thanks, Phil
****
PS
****
I found "Hemang Shah" <[email protected]> also asked this
question previously on 4th August and received no answer.
He said:
Hello Friends.
I have a form which is linked to a dataset of 3 tables.
One is the base table and the other 2 are look up tables.
Now when I scroll the records, the combo box i updated
properly showing the correct lookup.
But when I click update or load, the first item in the
combobox pops up even when that particular record dosen
thtat those selected..You know what I mean ?
I'm sure everyone would be having this problem and by now
there must b a well documented fix for this, can anyone
point me to the right direction ?
Thanks.