Winforms Combobox and Data Binding

I am binding a combobox to a DataSet, however I want to insert one item at the top for "None".

Doing:

 combobox.Items.Insert(0,"None");

      

Doesn't work as the combobox is now expecting a DataRowView, however the DataRowView doesn't have a public constructor, so I can't fake it.

Any advice? I'm sure this is a well-resolved problem.

+1


source to share


1 answer


Paste into the object you are linking to, not into the combo box. A good example is below.



http://social.msdn.microsoft.com/forums/en-US/winforms/thread/70785e67-5c27-428f-ac79-e45c8c70c3e8/

+4


source







All Articles