D
Derek
Hi All,
I have been having a hard time figuring how to approach a problem and
was hoping I might be able to get some assistance. Here is my situation.
I have a dataset that is based on a table in my SQL server database. I
am using Databinding to bind the dataset to a series of controls on my
form. A few of these controls are comboboxes. One of the comboboxes is
bound the the field in the dataset that is my primary key (it's called
ID). This works well for me because I can scroll through the combobox
and select whichever record I want to deal with and all the controls are
updated to that record when I select it. The problem however, resides
with another combobox which is bound to a field in the database that can
only have two (2) possible choices, Yes or No. I was expecting that this
combobox would only consist of two possible choices however I am finding
that there are as many "items" in the combobox as there are records in
the database. Granted there are only two possible "values" (Yes or No)
but they are repeated throughout the combobox. Any idea what I am doing
wrong? Has anyone seen this before? Thanks in advance for any
assistance!
- Derek
I have been having a hard time figuring how to approach a problem and
was hoping I might be able to get some assistance. Here is my situation.
I have a dataset that is based on a table in my SQL server database. I
am using Databinding to bind the dataset to a series of controls on my
form. A few of these controls are comboboxes. One of the comboboxes is
bound the the field in the dataset that is my primary key (it's called
ID). This works well for me because I can scroll through the combobox
and select whichever record I want to deal with and all the controls are
updated to that record when I select it. The problem however, resides
with another combobox which is bound to a field in the database that can
only have two (2) possible choices, Yes or No. I was expecting that this
combobox would only consist of two possible choices however I am finding
that there are as many "items" in the combobox as there are records in
the database. Granted there are only two possible "values" (Yes or No)
but they are repeated throughout the combobox. Any idea what I am doing
wrong? Has anyone seen this before? Thanks in advance for any
assistance!
- Derek