foreach (DataGridViewRow dgvRow in dgvValue.Rows) { if (certain condition) { dgvRow.DefaultCellStyle.Font = new Font(dgvValue.Font, FontStyle.Italic); dgvRow.DefaultCellStyle.BackColor = Color.LightGray; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)