Hi there...
I have a doubt regarding the MSFlexgrid:
Is it possible to have in the same flexgrid rows (or columns) with different text colors?
thanks in advance..
Printable View
Hi there...
I have a doubt regarding the MSFlexgrid:
Is it possible to have in the same flexgrid rows (or columns) with different text colors?
thanks in advance..
Hi,
Yes, you can change the cellforecolor of each cell in the row or column.
VB Code:
Dim i As Integer With MSFlexGrid1 .Cols = 10 For i = 1 To .Cols - 1 .Row = 1 .Col = i .CellForeColor = IIf(i Mod 2 = 1, vbGreen, vbRed) .TextMatrix(.Row, .Col) = "text" Next i End With
Have a good one!
BK
many thanks...
I'll give it a go :thumb: :thumb: