I have a class which give me this error
public class Item
{
public string Name;
public int Id
public Item(string name, int id)
{
N
I know the post is old but the accepted answer is not correct. The Op needed to change the order of how he was assigning displayMember, valueMember and Datasource and then note the added line of code.
comboBox1.DisplayMember="Name";
comboBox1.ValueMember = "Id";
comboBox1.DataSource = lstItems;
comboBox1.BindingContext = this.BindingContext;