C#自定义datatable
#region 自定义下拉列表 DataTable dt = new DataTable(); dt.Columns.Add("FItemID"); dt.Columns.Add("FName"); DataRow dr = dt.NewRow(); dr["FItemID"] = 1; dr["FName"] = "大华"; dt.Rows.Add(dr.ItemArray); dr["FItemID"] = 2; dr["FName"] = "海康威视"; dt.Rows.Add(dr.ItemArray); DataBinder.BindingLookupEditDataSource(txtFNote, dt, "FName", "FName"); #endregion