J
Jeremy Cowles
I have bound a combo box to a DataTable:
cbo.DataSource = m_dtLangs
cbo.DisplayMember = [field_name]
cbo.DisplayValue = [field_name]
ComboBox.DropDownStyle = DropDownList
When the selected item changes, I want the combobox to update a different
datatable with the currently selected value. So I have tried the following:
cbo.DataBindings.Add("Text", m_dtLabel, "printer_lang")
cbo.DataBindings.Add("SelectedText", m_dtLabel, "printer_lang")
cbo.DataBindings.Add("SelectedValue", m_dtLabel, "printer_lang")
cbo.DataBindings.Add("SelectedItem", m_dtLabel, "printer_lang")
None of these work (text / selectedText doesn't work because its a
DropDownList). I just can't seem to find the property where the actual value
is stored...
Any suggestions?
Framework 1.0
VS.NET 2K2
TIA,
Jeremy
cbo.DataSource = m_dtLangs
cbo.DisplayMember = [field_name]
cbo.DisplayValue = [field_name]
ComboBox.DropDownStyle = DropDownList
When the selected item changes, I want the combobox to update a different
datatable with the currently selected value. So I have tried the following:
cbo.DataBindings.Add("Text", m_dtLabel, "printer_lang")
cbo.DataBindings.Add("SelectedText", m_dtLabel, "printer_lang")
cbo.DataBindings.Add("SelectedValue", m_dtLabel, "printer_lang")
cbo.DataBindings.Add("SelectedItem", m_dtLabel, "printer_lang")
None of these work (text / selectedText doesn't work because its a
DropDownList). I just can't seem to find the property where the actual value
is stored...
Any suggestions?
Framework 1.0
VS.NET 2K2
TIA,
Jeremy