I have this:
cmbConnections.DisplayMember = "Name";
cmbConnections.ValueMember = "Index";
cmbConnections.DataSource = DBConnectionSettings.ConnectionList;
All Ok!
Now add new item to list:
DBConnectionSettings.Connection c = new DBConnectionSettings.Connection();
c.Name = reply;
c.Index = DBConnectionSettings.ConnectionList.Count + 1;
DBConnectionSettings.ConnectionList.Add(c);
I now want to show this new item in the comboxbox as the selected item. Setting the text of the combobox fails.
Thanks