Thanks for your response Peter.

this code (for years) works fine:

Code:
 
Set Enabled_State of (oDetailGrid(Self)) to (not(bChanged) and bRec) 
Set Enabled_State of (oDetailGrid(Self)) to (ajustes.Updated EQ "" and bRec) 
Set Enabled_State of BtnActAjuste to bRec 
Set Enabled_State of BtnActAjuste to (ajustes.Updated EQ "" and bRec )
But now the client wants to get into the grid to check the products after they have been updated, so I thought that I could use this code :

Code:
 
Set pbReadOnly of (oDetailGrid(Self)) to (not(bChanged) and bRec) 
Set pbReadOnly of (oDetailGrid(Self)) to (ajustes.Updated EQ "" and bRec) 
Set Enabled_State of BtnActAjuste to bRec 
Set Enabled_State of BtnActAjuste to (ajustes.Updated EQ "" and bRec )

It is suppose to works too. Maybe Iam wrong. I will keep trying.

Thank you

James