2
Answers

Insert item with selectindex in combobox in windows from

Prashant Singh

Prashant Singh

13y
1.7k
1
Hello,

i want to insert "select" at 0 index in combobox in windows form.
i used following syntax :
cmbShadeName.Items.Insert(0, "select");

but it is not working and give error :

"Items collection cannot be modified when the DataSource property is set."

please provide me correct solution.
Answers (2)