For future reference, this is the code i use in my DGV

vb Code:
  1. Private Sub ColourMixedItems()
  2.         Dim tmp As String
  3.         Dim i As Integer = 0
  4.         Dim counter As Integer = DGVReceipt.Rows.Count
  5.  
  6.         Do Until i = counter
  7.             tmp = DGVReceipt(2, i).Value
  8.             If tmp <> Nothing Then
  9.                 If tmp.EndsWith("M") Then
  10.                     DGVReceipt.Rows(i).DefaultCellStyle.BackColor = Color.LemonChiffon
  11.                 End If
  12.             End If
  13.             i += 1
  14.         Loop
  15.     End Sub