For i = 0 To ddvCourt.RowCount - 1
If ddvCourt.Item("Status", i).Value.ToString() = "Available" Then
ddvCourt.Item("Status", i).Style.ForeColor = Color.Green
ElseIf ddvCourt.Item("Status", i).Value.ToString() = "Not Available" Then
ddvCourt.Item("Status", i).Style.ForeColor = Color.Red
End If
Next
the code showing the datagridview that i use is want to change the font color 1 by 1 that i set. but it cant display the color that i set. did i do wrong in this coding
and i was add the datagridview(ddv.refresh()) after it get the data
plz help....
If ddvCourt.Item("Status", i).Value.ToString() = "Available" Then
ddvCourt.Item("Status", i).Style.ForeColor = Color.Green
ElseIf ddvCourt.Item("Status", i).Value.ToString() = "Not Available" Then
ddvCourt.Item("Status", i).Style.ForeColor = Color.Red
End If
Next
the code showing the datagridview that i use is want to change the font color 1 by 1 that i set. but it cant display the color that i set. did i do wrong in this coding
and i was add the datagridview(ddv.refresh()) after it get the data
plz help....