[Solved] Use List of custom Business Objects as ComboBox datasource


public class MyClass
{
    public string FirstProperty { get; set; }
    public int SecondProperty { get; set; }
}

Then:

var myList = new List<MyClass>
{
    new MyClass {SecondProperty = 1, FirstProperty = "ABC"},
    new MyClass {SecondProperty = 2, FirstProperty = "ZXC"}
};

comboBox1.DataSource = myList;
comboBox1.ValueMember = "FirstProperty";
comboBox1.DisplayMember = "SecondProperty";

I hope it helps.

solved Use List of custom Business Objects as ComboBox datasource