J
Jeremy Cowles
I have the following:
a combo box, cboPrinterType
a DataSet, dsPrinterTypes
a second DataSet, dsPrinter
I want to have the combo box list the values in dsPrinterTypes, so I have
set the DisplayMember and Data Source - this works
Next I want to have the selected item in the combo box bound to dsPrinter -
this does not work.
I have tried the following:
cboPrinterType.DataBindings.Add("Text", dsPrinter.Tables(0), "printer_type")
cboPrinterType.DataBindings.Add("SelectedItem", dsPrinter.Tables(0),
"printer_type")
cboPrinterType.DataBindings.Add("SelectedValue", dsPrinter.Tables(0),
"printer_type")
None of which work. The displayed items & values listed in the combo are
text.
Any suggestions?
TIA,
Jeremy
a combo box, cboPrinterType
a DataSet, dsPrinterTypes
a second DataSet, dsPrinter
I want to have the combo box list the values in dsPrinterTypes, so I have
set the DisplayMember and Data Source - this works
Next I want to have the selected item in the combo box bound to dsPrinter -
this does not work.
I have tried the following:
cboPrinterType.DataBindings.Add("Text", dsPrinter.Tables(0), "printer_type")
cboPrinterType.DataBindings.Add("SelectedItem", dsPrinter.Tables(0),
"printer_type")
cboPrinterType.DataBindings.Add("SelectedValue", dsPrinter.Tables(0),
"printer_type")
None of which work. The displayed items & values listed in the combo are
text.
Any suggestions?
TIA,
Jeremy