Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reading cellbackcolor problem in flexgrid

Status
Not open for further replies.

pvmurphy

Programmer
Jul 29, 2003
50
0
0
US
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
 
For some reason my machine was not recognizing vbYellow as a color? I changed it to vbRed and it's working fine. Thanks,

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top