//IEnumerator ie;
//ie = this.ComboBox1.Items.GetEnumerator();
//ie.Reset();
//while (ie.MoveNext()) //遍历条件
//{
// DataRowView r = ie.Current as DataRowView;
// object [] arr= r.Row.ItemArray;
// if (arr[0].ToString()==v.Rows[i].Cells[3].ToString())
// {
// v.Rows[i].Cells[3].Value = arr[1].ToString();
// m++;
// }
//}
//if (m == 0)
//{
// v.Rows[i].Cells[3].Value = "未知工种";
//}
遍历ComboBox
最新推荐文章于 2022-01-19 14:02:29 发布