代码如下:ForiAsInteger=0TodataGridView.Rows.Count-1dataGridView.Rows(i).DefaultCellStyle.BackColor=Colors.TransparentNext