I have the following classes/interfaces. I'm getting an ArgumentException saying "Complex DataBinding accepts as a data source either an IList or an IListSource". But, I am setting it to an IList. What am I doing wrong?
public interface IOriginList : IList<IOriginEntry>
{
...
}
public class OriginList : Interfaces.IOriginList
{
...
}
// Binding code
IList<IOriginEntry> originList = new OriginList();
cboOrigin.DataSource = originList;