Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids and SQL Server
Message
From
08/05/2007 17:24:56
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
08/05/2007 15:22:31
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01223538
Message ID:
01223622
Views:
23
>>>You could use different cursors (could be the same structure): one as grid's recordosurce, another to accept data from the server; and you have a form's method where you refill the recordsource:
>>>
>>>set safety off
>>>zap in gridalias
>>>set safety on
>>>insert into gridalias select * from sqlalias
>>>thisform.mygrid.setfocus
>>>
>>
>>Yeah, but refreshing the Child cursor shouldn't effect the Parent in any way. My child grid actually works just fine with the current set-up...
>
>You should do it with both grids, i.e. don't override their recordsources, just use Zap and Insert.

Hi Ed

Let's give credit where it's due. As I understand things this was invented / discovered by Andy Kramek and is what is called the Safe Select.

IMO the grid should have an ability in itself to overcome this. I imagine the safe select cannot be as fast inserting a large number of rows as a native way for the grid to prevent this.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform