>I'm new here and just learning Visual FoxPro. So, if I am repeating
>something y'all have already replied to .... sorry.
>
> o In my Form:
> I have a Grid that is Enabled = .F. Then I have a Button "Edit".
> o What I'm trying to do:
> Click() the "Edit" Button which in turn Enables the Grid and transfers
> Focus on the first row in the Grid
> o My question:
> How do I write code to go from the Click() in the Button to have the
> Focus ... on and in ... the Grid?
>
>I have a feeling I'm supposed to use SetFocus() but have no clue how!!!
>Thank you for your kind assistance,
>
>Mal
thisform.mygrid.enabled = .t.
thisform.mygrid.setfocus
Wellcome to lovely UT. Do not hesitate asking any type of question here. Many are repetitions but doesn't matter. UT members are kind enough and all try to help at their best.
Cetin