1:控件数据源绑定泛型Dictionary<string,string> 1): Dictionart<string,string> D=new Dictionary(string,string); xxx.DataSource=new BindingList<string>(D.values.ToList()); 2): Dictionary<string, string> D = new Dictionary<string,string>; BindingSource BS = new BindingSource(); BS.DataSource = D; XXX.DataSource=BS;
2:控件数据源绑定泛型List<string> 1): List<string> L = new List<string>(); XXX.DataSource = new BindingList<string>(L);
目前我知道,有可能不全面
2016-12-04 13:41:25
时间: 2024-12-01 17:57:03