Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding data to Grid Control
Message
De
30/08/2004 13:16:36
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00937635
Message ID:
00937705
Vues:
25
>>thisform.MyGrid1.RecordSource = ''
>>thisform.MyGrid1.RecordSource = "search_crsr".
>>(2)
>>create the cursor in the load() of the form
>>'bind' the cursor to the grid in the form designer (RecordSource)
>>zap the cursor
>>append the new/modified data to the cursor
>
>I thought about it. As Mark said , otherwise the grid would be bound to the alias in the DE.
>The problem is that at that point I don't know the structure of the cursor, there are different SQL selects which determine both the data structure and the data.
>
>J

Well, I have always avoided setting grid.RecordSources in code. Never run into problems like that (still on vfp6sp5 too)

Can you get around by (1) creating the cursor with sql and then launching a modal form in the default datasession or (2) add the grid to the form after the sql in done (LockScreen will be useful)
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform