[C#] [C#] DataGridView 홀수/짝수열 배경색 다르게 지정
하나를하더라도최선을
2022-09-30 14:36
848
0
본문
for (int i = 1; i < this.Rows.Count; i++)
{
if (i % 2 != 0)
{
this.Rows[i].DefaultCellStyle.BackColor = Color.FromArgb(240, 255, 240);
}
else
{
this.Rows[i].DefaultCellStyle.BackColor = Color.White;
}
}
댓글목록0