I use this to black out day field divider rows in my scheduler program. This has to be set before window is set.
Code: Select all
Private bColor := { || if( This.CellRowIndex/2 == int(This.CellRowIndex/2),{210,210,255}, {255,255,255})} // THIS WORKS
Private bLcolor := { || if( This.CellRowIndex/2 == int(This.CellRowIndex/2 .and. ThisCellValue = '"*"),{0,0,0}, {210,210,255})}
WINDOW
DEFINE GRID
DYNAMICBACKCOLOR{BCOLOR, BLCOLOR,BLCOLOR} //IF CELLVALUE (WHICH I DO NOT KNOW HOW TO SET BEFORE GRID) IS *
ENDGRID // BACKCOLOR IS BLACK OTHEWISE BACKCOLOR IS BLUE
END WINDOW
Thanks in advance.