Color1 C# DataGridView에 색깔 설정하는 방법 DataGridView는 다음과 같은 형태로 색깔을 설정할 수 있습니다.참고하세요. public void RowsColor() { for(int i = 0; i { int val = Int32.Parse(dataGridView1.Rows[i].Cells[2].Value.ToString()); if (val { dataGridView1.Rows[i].DefaultCellStyle.BackColor = Color.Red; } else if (var >= 5 && val { .. 2023. 5. 16. 이전 1 다음