我有這樣的代碼:如何將List <>綁定到ComboBox?
public static List<string> MyTable = new List<string>();
dsView = new DataSet();
adp = new SqlCeDataAdapter("SELECT DISTINCT Fname FROM MEN", Conn);
adp.Fill(dsView, "MEN");
adp.Dispose();
foreach (DataRow R in dsView.Tables["MEN"].Rows)
GG.Add(R["Fname"].ToString());
如何將其綁定到組合框?
提前致謝
你在開發?使用WinForms的Windows應用程序?使用Webforms或MVC的Web應用程序? WPF應用程序? Silverlight應用程序?移動應用? – Joseph