Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids and SQL Server
Message
De
08/05/2007 17:24:56
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
08/05/2007 15:22:31
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01223538
Message ID:
01223622
Vues:
18
>>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform