我想将 BindingSource
连接到一个类对象列表,然后将对象值连接到一个 ComboBox。
有人能建议怎么做吗?
public class Country
{
public string Name { get; set; }
public IList<City> Cities { get; set; }
public Country()
{
Cities = new List<City>();
}
}
is my class and I want to bind its name
field to a BindingSource which could be then associated with a ComboBox