>I have a frmDEGrdNav2Pages.
>
>On the bottom of the second page, I put a grdDataEntry for child records, and cmdDEGridAdd/cmdDEGridDelete.
>
>At first I made it a grdPicklist, because it's only for choosing records to be edited on the third page. But I wanted framework Add/Delete buttons, and I started to read zReadMe methods, and figured out I wanted the other classes above.
>
>Question is, when the user clicks the Add button, I want focus to go to the first textbox on the third page, not to the grid (which I've made read-only and set all appropriate PEMS according to zReadMe, etc.)
>
>The documentation mentions that you might want to use this Grid/AddButton/DeleteButton combination to do data entry on a called modal sub-form "or other mechanism", but it doesn't mention where to put code to go to the "other mechanism." I've tried the grid's ShellAfterAppendBlank, which of course doesn't work because the setfocus stuff happens in the grid after that method's called. I tried overriding the grid's AfterAppendBlank and AddAction methods each with:
IF DODEFAULT()
> This.Parent.Parent.Page3.txtThing.SetFocus()
>ENDIF
>but no dice.
>
>Help?
>
>TIA,
Rich;
Have you been up to the VMF forum to ask this question? You have a lot of freedom with the framework. One approach would be to simply use the Activate Event of the desired page and set focus from that point to the desired object. It is quick and effective. I can think of much more elegant methods to accomplish the same thing but I would suggest taking a simple approach first and see how it works for you.
Tom