摘要: 首先在datagridriew属性设置AllowUserToAddRows设为false;AllowUserToDeleteRows设为false;在到button事件:private void button17_Click(object sender, EventArgs e)//修改表内事件 { dataGridView3.DefaultCellStyle.BackColor = Color.Beige; for (int f = 0; f < dataGridView3.Rows.Count; f++) { for (int r = 0; r < dataGridView3. 阅读全文