Similar to a previous question but for .NET 4.5, where the accepted answer doesn't work when I try it.
I'm trying to populate a ComboBox from a Dictionary. No compiler errors, but I get an ArgumentException: "Complex DataBinding accepts as a data source either an IList or an IListSource". That makes me think that the way I'm binding, ComboBox is only going to let me fill either one or the other, since List is only one dimensional.
Simplified code:
Dictionary<string,string> orgs = await api.CreateOrgMap();
organizationListComboBox.DataSource = orgs;
I could use a List of an object with the fields Key and Value, but that seems silly when Dictionary should work and ends up with a bonus object. What am I doing wrong / is this no longer possible?
I'm not sure it makes a difference, but I'm using WinForms.