Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to move the focus down one row in a grid
Message
 
À
20/03/1999 15:16:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00200179
Message ID:
00200184
Vues:
10
> 1. I have a grid. Its first column is a combo box. When I want the user press > ENTER in the last column (for example, the 10th), the focus will move to the > first column of next line. I tried to use "Append Blank" at the 10th text
> box's Keypress event but it will move to the first column of the same line
> but will not move down one line. How come?



Try this: in KEYPRESS Event of textbox in 10th column
Grid.ActivateCell(Grid.ActiveRow+1,1)


> 2. Another question is: If I have a combo box which has 2 column of data
> inside, how can I get the value of the first column? I tried
> "thisform.combo1.value" but I think this value represent the 2 column but not
> the first column's value.


Try "thisform.combo1.displayvalue" but this works only if you choose combobox to display the first column.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform