摘要:
C#遍历ComboBox的内容:一:for (int i = 0; i < comboBox1.Items.Count; i++){ MessageBox.Show(comboBox1.GetItemText(comboBox1.Items[i]));}二:foreach (System.Data.DataRowView dr in comboBox1.Items){ string id = dr["student_id"].ToString(); string nane = dr["student_name"].ToString();}//for 阅读全文