Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The grid is a wonderous thing (except for this one thing
Message
 
À
15/04/1999 12:30:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00208603
Message ID:
00208605
Vues:
21
>I am using a grid to get and display phone numbers and descriptions. It is based upon a filtered view to display only the numbers associated with the currently selected contact. I found that one feature of the grid is that if you click in an empty cell it fires the click event of the grid so I use this to add a record to the view and set focus on the new record. This works but has some bizarre effects.
>
>If there are no records currently displayed (the first number for a contact) it won't set focus on the cell until you click on it.
>
>I am counting the existing records to calculate the position of the new record but when adding records the grid seems confused about the display position of new records (possibly because of the negative record numbers?).
>
>The rest of the erratic behavior is variations on this theme. I don't think this is a result of a filtered view but...

A more standard and less-complicated way is to use an Add button to add the record, then setfocus to the grid to go to the new record. Can you do something like that?
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform