Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid row SetFocus after append
Message
De
07/07/2016 13:13:31
 
 
À
07/07/2016 12:05:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01638045
Message ID:
01638054
Vues:
71
>Sorry if I am bringing up a subject that has been dealt with before, but search didn't reveal anything. Googling hasn't revealed any solutions either.
>
>I have a grid, and in the RightClick of Header1 of Column1 I have an Append Blank to add a new record to the grid. I need to SetFocus to the Column1.Text1, so the user can enter new info. I can see the new record pop into the grid, as it has a checkbox in one column, but no matter what I do, the cell/row will not 'get focus'. Any help will be most appreciated!
>
>Thank you!

John,

I am with numerous others, grids are no good to append and edit data. People tend to believe vfp grids are same like Excel sheets, but nothing like that at all.

Now if you do want to make use of a grid and also would like to append / edit the data, the very best solution is to construct a grid with above (Excel like) or underneath textboxes which the enduser can use to edit/append data.

There are several examples how to do this in the vfp solution samples but if you are still uncomfortable than I would suggest to upload here your cursor/table rowsource for your grid and I could produce a working example for you.

Regards,
Koen
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform