C#编程-78:DataGridView隔行显示不同颜色

//方法一(推荐): //设置所有行背景色 this.dataGridView1.RowsDefaultCellStyle.BackColor = Color.Violet; //设置奇数行背景色(下标从零开始) this.dataGridView1.AlternatingRowsDefaultCellStyle.BackColor = Color.Blue;   //方法二: for (int 
相关文章
相关标签/搜索