cgship=substr(othernr.shipmentid,3,3) > >thisform.grdnrother.shipment.dynamicbackcolor= [IIF(alltrim(cgship)='G',rgb(255,0,0),RGB(255,255,255))]the .DynamicBackColor is evaluated at each row as its being displayed, and not at the time you set the property... you would have to include the whole thing as...
thisform.grdnrother.shipment.dynamicbackcolor= ; [IIF(alltrim(substr(othernr.shipmentid,3,3))='G',rgb(255,0,0),RGB(255,255,255))]