Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Question
Message
 
À
14/11/2002 13:34:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00722833
Message ID:
00722989
Vues:
15
This message has been marked as a message which has helped to the initial question of the thread.
It seems that nulling the recordsource would set grid's columns back to their default state. Instead of modifying your recordsource, you might try assigning a static recordsource (like a cursor that is defined in your form's load event [make sure to have it created when you build your grid and assign it as a record source]). Instead of nulling the source when you change data, simply zap and append to your static record source from a file or cursor with a matching file structure.

>Hello
>
>I have some code in the keypress event of a textbox in a grid (based on a table) and i have a command button to delete the contents of the table.
>
>what's happening is first time when form is run keypress event works fine,but when command button is clicked and grid gets refreshed by setting recordsource="" and again resetting the keypress doesn't fire.
>
>how to make the keypress to fire after the delete.
>
>
>txs
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform