I need to change the color of a row when my form loads. I'm using the following code, but it changes the color of all the rows...any suggestions?
VB Code:
Dim i As Integer With ds.Tables("checks") For i = 0 To .Rows.Count - 1 If .Rows(i)("check_no") = "2" Then dgView.BackColor = Color.Red End If Next End With
