>>Assuming I have a grid on a form. That grid contains a property nCurrentRec. That holds the current recno. Where in the grid should I put the This.nCurrentRec=RECNO() to initialize that updated value?
>>
>>I have this in the Init():
>>
>>
>>This.SetAll('DynamicBackColor','IIF(RECNO()=This.nCurrRec,;
>> RGB(0,0,128),This.BackColor)','Column')
>>This.SetAll('DynamicForeColor','IIF(RECNO()=This.nCurrRec,;
>> RGB(255,255,255),This.ForeColor)','Column')
>>
>>
>>Basically, it serves to highlight the current record. We had this for a while in our framework. Then, for some kind of reason, we have removed that initialization. It just can't seem to find the proper place to have that working.
>
>Michel, did you try my Grid Highlighter class? No changes to your grid except adding one line of code.
Well, it works. It's that I had the assumption I didn't have to do a This.Refresh() in the AfterRowColChange() event and also to lock screen to avoid refresh.