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.
Loading
Vilas GitePosted Jun 29, 2011, 4:02 AM
try to before data binding
http://stackoverflow.com/questions/3063398/items-collection-cannot-be-modified-when-the-datasource-property-is-set-anyway
If this reply hepls your post…then "MARK AS ANSWER"!
Prasant JinagaPosted Jun 29, 2011, 3:22 AM
May be insert directly in to the datasource before binding...
ex:
Thanks & Regards,
Prasant