DataGridViewCellStyle dcs = new DataGridViewCellStyle(); //dcs.BackColor = Color.Red;//背景颜色 dcs.ForeColor = Color.Red;//字体颜色 this.dataGridView1.Rows[0].DefaultCellStyle = dcs;
111,115
社区成员
642,552
社区内容
加载中
让您成为最强悍的C#开发者
试试用AI创作助手写篇文章吧