Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class, Grid and a VIEW
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00504672
Message ID:
00504698
Vues:
13
Hi!

Just type in the properties window in RecordSource property the alias name of your view. Open this view in the LOAD event of the form with nodata and use requery() function in the INIT event. Each view requery will require assigning of empty string to record source, requery than assign record source again. You require alias opened in LOAD or data envoronment because it should exist before grid initialization and record source of grid should not be empty if you do nto want to lose all columns. Because you have a class, open view manually in the LOAD event by USE command.

HTH.

>Hi,
>
>I have a class (a form based one) with a grid, and that grid must br populate with the rows that come from a view. I have created the view, but since I don´t have a dataenvironment in the class designer, I can´t assign the View as the RecordSource of the grid. How can I do that?? I tried it by code, assigning the view to the grid and also to the columns, both ways doesn´t work!
>
>Please help!!!!!!!!
>
>TIA
>
>Alonso
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform