I changed the code to remove the row highlight (commenting to lines and adding 1) on CellBackgroundPaint:
g.ClearRect 0, 0, g.Width, g.Height
'g.ForeColor = &c2F2F2F00
'g.FillRect 0, 0, g.Width , g.Height
and added CellTextPaint with this code:
If Me.selected(row) Then
g.ForeColor = &c00000000
g.DrawString(Me.Text,x,y)
End If
that way the text is black if the row is selected or not.
Everything works right if I don’t put anything on column 0, if I put something there then it looks like the text is painted twice (bold) not only in that column but everything on the row if the row is selected.
I tried to find what is wrong but I was not able to spot the problem.
Thank you Jeff, because I used the same text I didn’t catch that. Now I did a test with something different on column 0 and column 1 on the same row and I can see what you mean.
Thank you Tim, that’s needed to not draw twice.
Sorry I can’t select both answers as “This answers my question”
Emile, its Axel’s fault the original code use 8 digits so I just changed it to try to do other things.
Thank you for the link.
Edit: I guess if you don’t put the values then 00 is used, I changed the last 2 digits (transparency) to FF and I can’t see the text, then to AA and it is very ‘light’.