Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why my focus of a grid cannot roll down 1 row?
Message
De
12/08/1999 03:42:41
 
 
À
11/08/1999 13:24:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00252629
Message ID:
00252858
Vues:
21
Hi Power Wong.

>> thisform.grid1.ActivateCell(thisform.grid1.ActiveRow + 1,1)
thisform.grid1.setfocus()
It still stay in the first column and row.
How can it go to the 2nd row automatically after "append blank"? <<

I assume you are aadding your new record in the keyPress of the Text box contained in the last column. After APPEND BLANK, use this code:
WITH This.Parent.Parent
   .Refresh()
   .Column1.SetFocus()
ENDWITH
Should do what you want.

Marcia
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform