26-01-16, 02:10 AM
جرب هذا الكود
PHP كود :
For i As Integer = 0 To Datagridview1.Rows.Count - 1
For ColNo As Integer = 4 To 7
If Datagridview1.Rows(i).Cells(ColNo).Value = 20 Then
Datagridview1.Rows(i).Cells(ColNo).Style.BackColor = Color.Red
End If
Next
Next
Don't Be The Perfect one
be the right one

