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:
With gvItemList For i = 1 To .Rows.Count - 1 If .Rows(i).Cells.Item(0).ToString = stValue Then .Rows(i).BackColor = Drawing.Color.CadetBlue End If Next End With
thanks in advanced!




Reply With Quote