>I have a simple form that consists of a pageframe with two pages and Grids on a page 1. When I select page2 I am doing data validation of the Grids.
>For that I have code in Deactivate event. If I have to stop from switching pages I am using the following code:
>NODEFAULT
>RETURN .F.
>in the Deactivate.
>That works fine and pages dont change. But the grids on the page 1 do not get the focus back. How can I position focus back to the grids?
>
>Thanks, Mark
NODEFAULT
thisform.Page1.grid1.SetFocus()
RETURN .F.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.