Use the FindStringExact method. For example, if you have set the ComboBox’s ValueMember property to ‘OrderID’, then you could call
comboBox1.SelectedIndex = comboBox1.FindStringExact(stringOrderID);
where stringOrderID is the ‘orderID’ of the row to be selected.
Share with