Hi
I have a datagridview which I would like to change the the color of the text in a cell if the number is negative in the Total column.
This is what I have so far.
Dim rowcont As Integer = (TTLGrid.Rows.Count) - 1
For x = 0 To rowcont
Dim Total As String = TTLGrid.Rows(x).Cells(4).FormattedValue
Dim PosNeg As String = Microsoft.VisualBasic.Left(Total, 1)
If PosNeg = "-" Then
??
End If
Thank You