Well i just tried to turn Rows cells that contain the word Yes into green on form load
when i put that code into a button it worked but on a form load i didn't work !
anyone can help me out ?
Thanks
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim j As Integer = 0
For j = 0 To Me.DataGridView1.Rows.Count - 1
If (Me.DataGridView1.Rows(j).Cells("StatusDataGridView").Value = "Yes") Then
Me.DataGridView1.Rows(j).DefaultCellStyle.BackColor = Color.Green
End If
Next
End Sub