>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only