Here I am doing some individual cell ForeColor change and some full rows BackColor change.
You will find what you are looking for. If you do not have a specific cell in mind, you will also have to have a inner loop to check each cell value.
Private Sub dgvFlaws_DataBindingComplete(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewBindingCompleteEventArgs) Handles dgvFlaws.DataBindingComplete
Dim TwoColors As Color() = {Color.White, Color.Bisque}
Dim cInd As Integer = 1
Dim crntID As String = ""
Dim HighSeverityList As String = "1,2,3,4"
For iRow As Integer = 0 To dgvFlaws.Rows.Count - 1
With dgvFlaws.Rows(iRow)
If .Cells("ID").Value.ToString.Trim <> crntID Then
cInd = 2 - (cInd + 1)
crntID = .Cells("ID").Value.ToString.Trim
End If
.DefaultCellStyle.BackColor = TwoColors(cInd)
If HighSeverityList.Contains(.Cells("FlawCode").Value.ToString) Then
.Cells("FlawCode").Style.ForeColor = Color.Red
.Cells("FlawLength").Style.ForeColor = Color.Red
End If
End With
Next
If dgvFlaws.Rows.Count > 0 Then
gridRow = 0
dgvFlaws.CurrentRow.Selected = False
dgvFlaws.CurrentCell = dgvFlaws.Item(0, 0)
End If
End Sub