private void dataGridView1_CellFormatting(object sender, System.Windows.Forms.DataGridViewCellFormattingEventArgs e) { foreach (GridViewRow gvrow in GridView1.Rows) { if(Give the condition here) { //Change row's color here like row.BackColor = Color.Red; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)