this.datagridview1.Rows[i].DefaultCellStyle.BackColor = System.Drawing.Color.DarkGreen;
this.datagridview1.Rows[i].DefaultCellStyle.ForeColor = Color.Black;
C#设置datagridview背景颜色和字体颜色
最新推荐文章于 2024-08-19 11:04:54 发布
this.datagridview1.Rows[i].DefaultCellStyle.BackColor = System.Drawing.Color.DarkGreen;
this.datagridview1.Rows[i].DefaultCellStyle.ForeColor = Color.Black;