I have a combobox which is binded to a list. I've been trying to work out how to have the first item in the combobox when it's loaded a "--Please Select--" before the data from the list is loaded.
I have tried this,
cbUpdate.DataSource = _names;
cbUpdate.Items.Insert(0, "-Select-");
cbUpdate.SelectedIndex = 0;
cbUpdate.DisplayMember = "Name";
But this gives the errro,
Items collection cannot be modified when the DataSource property is set.
I understand the error, but I am unsure of how to solve it. I've trying to set the Text of the combobox to "Please Select" but that doesn't work.
var names = new BindingList<Names>();