Juan Carlos,
Jayesh' code is correct if you are selecting a record on one page and then moving to a different page. If you are staying on the same page as the grid, then put the SetAll() code into the REFRESH method of the page.
HTH
Barbara
>Hello.
>
>I need to block (Readonly = TRUE or enabled = FALSE) all objects in a page when the record meets a condition only.
>I have one grid (one combo inside), command buttons and one edit box in the page.
>
>What is the best way to do this?
>
>I have tried different things but they don't work well,the problems occur when i select a record in the grid meeting the condition and then select a different one.
>
>Thanks.
>
>
>Juan Carlos