Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any way to refresh a grid
Message
From
29/11/2006 02:45:34
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01173107
Message ID:
01173145
Views:
9
>With a subclassed grid on a form is there any way to include some code in the grid class so that I don't have to explicitly call refresh and setfocus in my "add" and "delete" buttons?

1. Thisform.Refresh

2. BINDEVENT
You can use BINDEVENT(), but this reverse the issue:
"the grid class has to known that buttons exists"

2.1 "the solution"
BINDEVENT to the RecordSource Alias events: "CursorInsert", "CursorDelete"
But unfortunately the actions APPEND,INSERT,DELETE..
don't produce events.
It is possible to simulate them with CHECK,
but it becomes too much an onerous complication .

Use 1.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform