P
PeterZ
Hi,
Win Forms question.
Got a comboBox (myComboBox) with it's items set through the collection
editor in the IDE. These are:
No
Yes
Not Applicable
I also have a strongly typed dataSet (myDataSet) with a table (myTable), one
of the columns is called HEROIN_ADDICT, it may contain one of the values: 0,
1 or 2. Where 0 = No, 1 = Yes, 2 = Not Applicable.
I would like to databind the combo to the HEROIN_ADDICT column so the
appropriate item is selected. I tried setting the SelectedValue property of
myComboBox to "myDataSet - myTable.HEROIN_ADDICT" but this doesn't do
anything at runtime.
Can anyone help?
Cheers,
Z
Win Forms question.
Got a comboBox (myComboBox) with it's items set through the collection
editor in the IDE. These are:
No
Yes
Not Applicable
I also have a strongly typed dataSet (myDataSet) with a table (myTable), one
of the columns is called HEROIN_ADDICT, it may contain one of the values: 0,
1 or 2. Where 0 = No, 1 = Yes, 2 = Not Applicable.
I would like to databind the combo to the HEROIN_ADDICT column so the
appropriate item is selected. I tried setting the SelectedValue property of
myComboBox to "myDataSet - myTable.HEROIN_ADDICT" but this doesn't do
anything at runtime.
Can anyone help?
Cheers,
Z