>Hi Larry,
>
>Thanks for your suggestion, it appears the code does highlight the first record when the no. of records can fit in the grid, my code used to do that without the need for the additional code you suggested.
>
>However, what I need is highlighting the last record and this code will clash with my code that highlight the last record based on the record pointer which is something like this in the Grid's init:
>
>THIS.SETALL("DynamicBackColor","IIF((THISFORM.ncurrec=RECNO()),RGB(0,255,0),RGB(255,255,255))","Column").
>
>
>Thanks again.
I haven't tried it but I think it should work if you replace
"STORE RECNO() TO lnRecno" with "STORE THISFORM.ncurrec TO lnRecno" in my code.
Regards,