Probably the current alias in your recn()==.. statement is not the grid recordsource, so try recno(aliasname) instead; or This.nRecNo is not defined properly.
>Hi,
>I have expression as below set in dynamicbackcolor. However, VFP grid highlight all rows. Why? It works fine on certain forms.
>
>
>IIF(RECNO()==This.nRecNo , This.nSelectedBackColor , This.nFieldBackColor)
>
>
>Please advise