‘设置表格背景色
DataGridView1.RowsDefaultCellStyle.BackColor = Color.Yellow
’设置交替行的背景色
DataGridView1.AlternatingRowsDefaultCellStyle.BackColor = Color.Red
DataGridView1.RowsDefaultCellStyle.BackColor = Color.Yellow
’设置交替行的背景色
DataGridView1.AlternatingRowsDefaultCellStyle.BackColor = Color.Red