Getting selected value of databound combobox

  • Thread starter Thread starter MigrationUser 1
  • Start date Start date
M

MigrationUser 1

Guest
If I populate a combo box manually with items, I can get the selected item using

comboBox.SelectedItem.ToString();

But now I have created a databound combobox, but cannot find out how to get its selected value.

comboBox.SelectedItem.ToString();

Returns System.Data.DataRow

and

comboBox.SelectedText.ToString()

returns "". Even though a value is selected.

How can I get the selected text/value of a datbound comboBox??

Continue reading...
 
Back
Top