Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
One grid - many datasources - how to switch ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00641049
Message ID:
00641060
Vues:
14
Thanks Sergey !
faq #739 is what I was looking for.


>Set grid's Recordsource to the empty string before changing it.
Thisform.mygrid.Recordsource = Space(0)
>...
>Thisform.mygrid.Recordsource = "newcursor"
See faq #8019 for more info.
>
>>I have a form with a grid that should enable switching between a few datasources (with the same structure). How to do this in simplest way ?
>>I tried something like this but grid columns properties (datasources) was destroyed:
>>lcOldRecordsource = thisform.grid1.recordsource && Customers
>>thisform.grid1.recordsource = ""
>>use in Customers
>>use Customers5 as Customers
>>thisform.grid1.recordsource = lcOldRecordsource
>>
>>Maybe someone has a solutiom. Thanks in advance.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform