For future reference, this is the code i use in my DGV
vb Code:
Private Sub ColourMixedItems() Dim tmp As String Dim i As Integer = 0 Dim counter As Integer = DGVReceipt.Rows.Count Do Until i = counter tmp = DGVReceipt(2, i).Value If tmp <> Nothing Then If tmp.EndsWith("M") Then DGVReceipt.Rows(i).DefaultCellStyle.BackColor = Color.LemonChiffon End If End If i += 1 Loop End Sub




Reply With Quote
