foreach (DataGridViewRow dgvr in dataGridView1.Rows) { if ((int)dataGridView1.CurrentRow.Cells["KEY"].Value == colorHighlightedRowIndex) { dataGridView1.Rows[colorHighlightedRowIndex].DefaultCellStyle.BackColor = Color.Yellow; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)