Prashant Singh

Prashant Singh

  • NA
  • 86
  • 68.3k

Insert item with selectindex in combobox in windows from

Jun 29 2011 1:51 AM
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)