foreach (DataGridViewRow row in gvPlanning.Rows) { for (i = 1; i <= 10; i++) { string color = row.Cells["Color"].Value.ToString(); if (color != "") { row.Cells["Col1"].Style.BackColor =System.Drawing.Color.Red; row.Cells["Col2"].Style.BackColor = System.Drawing.Color.Red; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)