Hey, Just trying to loop through my gridview and change the color of the row if the first cell equals a given value. This is the code I am trying but does not work.

vb Code:
  1. With gvItemList
  2.             For i = 1 To .Rows.Count - 1
  3.                 If .Rows(i).Cells.Item(0).ToString = stValue Then
  4.                     .Rows(i).BackColor = Drawing.Color.CadetBlue
  5.                 End If
  6.             Next
  7.         End With

thanks in advanced!