I’m having problems reading the CellBackColor of a flexgrid in certain situations.
If I’m using the click event on the grid, I am able to read the color
ex. If MSFlexGrid1.CellBackColor = vbRed Then
‘this will return true if the cell clicked is red
However when I try to reference by a certain row and column, it always returns false and the CellBackColor is always 0.
With MSFlexGrid2
.Row = 1
.Col = 0
if .CellBackColor = vbRed then
‘this is always returning false
Any ideas on how to do this?
Thanks in advance,
Jim
If I’m using the click event on the grid, I am able to read the color
ex. If MSFlexGrid1.CellBackColor = vbRed Then
‘this will return true if the cell clicked is red
However when I try to reference by a certain row and column, it always returns false and the CellBackColor is always 0.
With MSFlexGrid2
.Row = 1
.Col = 0
if .CellBackColor = vbRed then
‘this is always returning false
Any ideas on how to do this?
Thanks in advance,
Jim