Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to have bind grid to a view on the fly?
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
How to have bind grid to a view on the fly?
Versions des environnements
Visual FoxPro:
VFP 9
Database:
MS SQL Server
Divers
Thread ID:
01036780
Message ID:
01036780
Vues:
52
Here is a simplified situation:

Form has a pageframe with 2 pages. Page 1 has detailed information about a company. Page 2 has a grid of company orders. I want to create a view of company orders only when/if user clicks on the Page 2 tab. But the grid on the Page 2 is bound to this "non-existent" view and obviously form gets error on initial display.

If the grid had a property .BindControl (like form does) it would be nice, then I could set this property to .T. only when user clicks on Page 2 tab and the code retrieves a view.

How can I make the grid not to be bound until a view is created?

TIA.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform