Can anyone tell me how to get the selected item of a ComboBox
to a string
variable?
string selected = cmbbox.SelectedItem.ToString();
MessageBox.Show(selected);
This gives me System.Data.DataRowView
in my MessageBox
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…