Hi All,
The following is the code within the init method of the grid:
FOR m.lnJ=1 TO This.ColumnCount
This.Columns[m.lnJ].DynamicBackColor="This.Condition()"
ENDFOR
DODEFAULT()
The condition method changes the color of the row based on
different conditions found within the Condition Method
below:
It is working fine at development time whenever I run the form
by itself. But when I compile it as an app or an exe file,
if I scroll to the right of the grid the colors are not
changing properly. It seems the condition method is
not called from the DynamicBackColor property.
Apprecaite any input.
Thanks
Doron
Condition Method:
-------------------
IF PctDist.lPct_Cancelled
*** Blue
*** If Cancelled
RETURN RGB(0,255,255)
ENDIF
LOCAL m.ldSystemDate,m.lcIsItValid
m.ldSystemDate=IIF(Employee.cPay_Cycle==;
"S",System.dSys_PayS_Dlu,System.dSys_PayW_Dlu)
m.lcIsItValid=;
BETWEEN(m.ldSystemDate,PctDist.dPct_Start,PctDist.dPct_End)
DO CASE
CASE m.ldSystemDate
***Yellow
*** For future LDI
RETURN RGB(255,255,0)
CASE m.lcIsItValid
*** Green
*** Curren LDI
RETURN RGB(0,255,64)
CASE ! m.lcIsItValid
*** Red
*** Expired LDI
RETURN RGB(255,128,128)
ENDCASE
RETURN RGB(255,255,255)