* Grid Init This.nRecNo = Recno(This.RecordSource) This.SETALL("DynamicBackColor","IIF((THISFORM.nRecNo=RECNO(This.RecordSource))," + ; "RGB(0,0,255),RGB(255,255,255))","Column") * Grid AfterRowColChange event This.nRecNo = Recno(This.RecordSource)>Now, I know there are a couple of ready made classes out there, but I'd like to try to do it myself.
>* Reset the color to white >THIS.SETALL('DynamicBackColor','RGB(255,255,255)','Column') >FOR i=1 TO THIS.COLUMNCOUNT > THIS.COLUMNS(i).CurrentControl.BackColor = 'RGB(192,192,192)' > * Except there is no such thing as the CurrentControl.BackColor property > * and I'm at a loss as to how to change the CurrentControl's BackColor >ENDFOR >>