110,534
社区成员
发帖
与我相关
我的任务
分享
private void dataGridView1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
if (dataGridView1.Rows[e.RowIndex].Cells[0].Value == 1)
{
}
else
{
}
}
private void dataGridView1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
//周日的条件判断
e.CellStyle.BackColor = Color.LightBlue;
}