I am trying to make the background color of the first row in my grid blue. here is what I am trying in c#.
for (int i = 0; i < rgvAlarmLog.ColumnCount; i++)
{
rgvAlarmLog.Rows[rowCount].Cells[i].Value = HeaderRowSplit[i];
rgvAlarmLog.Rows[rowCount].Cells[i].Style.BackColor = System.Drawing.Color.Black;
}
I have another loop that goes through the rows and that is the rowcount variable. There is no visible color change when I do this. What am I doing wrong? It is a radgridview object. I have looked at similar post and tried their code to no avail. Any advice? Thanks
for (int i = 0; i < rgvAlarmLog.ColumnCount; i++)
{
rgvAlarmLog.Rows[rowCount].Cells[i].Value = HeaderRowSplit[i];
rgvAlarmLog.Rows[rowCount].Cells[i].Style.BackColor = System.Drawing.Color.Black;
}
I have another loop that goes through the rows and that is the rowcount variable. There is no visible color change when I do this. What am I doing wrong? It is a radgridview object. I have looked at similar post and tried their code to no avail. Any advice? Thanks