Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid doesn't refresh
Message
From
19/12/1996 11:04:32
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00015614
Message ID:
00015620
Views:
26
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform