Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid doesn't refresh
Message
De
19/12/1996 11:04:32
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00015614
Message ID:
00015620
Vues:
30
>Using VFP 3 to do a Point of Sale System
>
>where the item code is entered in a text box and in the valid method i add the item direct into the table.
>and call
>thisform.grid1.refresh
>
>the grid's control source is the table field
>
>enter one or two items the grid refreshes ok, but if you place a third item it doesn't show.
>
>i have to click on the grid for it to refresh. this is probably a bug.
>
>Anyone experienced this? Tried to solve using set focus on the valid method - which incidentally doesn't work.

Normally Refresh should work in your case. Just check couple things:
1. Make sure that grid RecordSource (not ControlSource) is table.field.
2. You can use Nodefault in Valid event to support needed SetFocus().
3. If it still doesn't work but manual mouse clicking saves the situation you can click programmatically using MOUSE command. I use it sometimes not for standard but Active-X controls.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform