Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Binding data to Grid Control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00937635
Message ID:
00937765
Vues:
23
>>I seem to recall that if I had an unbound grid on a form, the grid would >use a table opened by the DE of the form as its RecordSource. I had to set >the RecordSource of this grid to [ empty string ] in the form init so the >form and the "serach results" grid would properly display nothing when the >form was first opened. Once there were search results, I would then bind >the grid to that results cursor. Is this similar to what you are doing?
>
>Exactly, but I am still getting a refresh error with the empty string.

>>>What do you mean by "refresh error". Can you post the code around and >>>where the error is occuring as well as the error message?

If I do a thisform.refresh when RecordSource is set to '', I get an error. So I took off the refresh. Now its back to the old problem, the Grid gets populated with the currently open table and not from the cursor, even though I have a "thisform.MyGrid1.RecordSource = "search_crsr" after the Select statement.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform