5七月/10關閉
ComboBox分別給予名稱跟值
DataTable skill_dt = new DataTable();
skill_dt.Columns.Add("value");
skill_dt.Columns.Add("name");
skill_dt.Rows.Add("", "請選擇");
skill_dt.Rows.Add("A", "組別1");
skill_dt.Rows.Add("B", "組別2");
skill_dt.Rows.Add("C", "組別3");
skill_dt.Rows.Add("D", "組別4");
skill_dt.Rows.Add("E", "組別5");
skill_dt.Rows.Add("F", "組別6");
skill.DataSource = skill_dt;
skill.DisplayMember = "name";
skill.ValueMember = "value";