I have a ComboBox that retrieve (successfully) its values from the DB:
cmbID.DataSource = dsEmp;
cmbID.DisplayMember = "Employee.ID";
and I try to get the selected value from it by:
string ggg = cmbID.SelectedItem.ToString();
instead of return the specific item its return "System.Data.DataRowView"
when I'm using a simple comboBox
cmbID.Items.Add("333");
cmbID.Items.Add("888");
there is no problem and I get the value (for example "888").