摘要: for (int i = 0; i < dataGridView1.Rows.Count; i++) //删除行后 count值会改变 { DataGridViewRow row = dataGridView1.Rows[i]; dataGridView1.Rows.Remove(row); i--; //所以这里要把i... 阅读全文
posted @ 2017-12-24 11:25 clown 阅读(1167) 评论(0) 推荐(0) 编辑