Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid at my form
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Divers
Thread ID:
01101649
Message ID:
01101674
Vues:
9
The AllowAddNew property simply means that when you are on the last record in the grid and you press the down arrow, a new record is added. This is good for "heads down" data entry. To add a record to the grid programatically, just APPEND BLANK (or use the INSERT INTO command) and then call the grid's Refresh method (THISFORM.MYGRID.REFRESH). You can put a button on the form to add a new record to the grid and one to delete records.

I hope this is helping. Your English is a little rough so I'm not completely clear on some of the questions.

As for Tore's advice about not using grids for input, I'd have to strongly disagree with that. You hear that sometimes, even from some of the supposed gurus. I think it's very possible to use grids for input and it is a much more intuitive way of allowing input for things like invoice line items, etc. I've been doing it since VFP 5 with no significant problems and this has been in applications with anywhere from 5 users to 80 users.

Russell Campbell

>hi,
>i put mygrid at myform,
>at grid level i change properties allowaddnew = true.
>
>nothing happend ...no new empty record.
>
>thanks
eCost.com continues to rip people off
Check their rating at ResellerRatings.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform