如何將List綁定到ComboBox?我想連接一個(gè)BindingSource類對(duì)象列表,然后將對(duì)象值連接到一個(gè)ComboBox。誰(shuí)能建議怎么做?public class Country{
public string Name { get; set; }
public IList<City> Cities { get; set; }
public Country()
{
Cities = new List<City>();
}}是我的類,我想將其name字段綁定到BindingSource,然后可以與ComboBox關(guān)聯(lián)
如何將List綁定到ComboBox?
慕尼黑的夜晚無(wú)繁華
2019-08-12 17:11:51