Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a grid using a cursor that is created at runtim
Message
De
13/08/1997 12:07:08
Edward Crawford
City Facilities Management
Glasgow, Royaume Uni
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00044365
Message ID:
00044463
Vues:
29
>>>>How do I create a grid based on a cursor that is created (using an SQL-select) in the form's init method?
>>>>
>
>>If you put the SELECT... into the LOAD method instead of the INIT method you can set up your grid in advance and there is no need to do it programmatically at run time.
>
>Barbara,
>
>I think my question was ambiguous, but you answered the question that I intended to ask. I want to define the grid during development not at run time. I have put my Select statement in the Load method, but I still don't see how this lets me create the grid manually or using the builder. The only tables that show up are physical tables on disk not the logical ones (cursors).
>
>Could you explain how I build the grid using this cursor.


Evan:

I don't know how much you want to do to the grid, but what you could do is set your girid's ColumnCount property to -1, set up your cursor in the Load Event, then in the Forms Activate event set the grids RecordSource property to your cursor. Any properties that need to be set can be set with the grid's SetAll() method.

Hope this helps.

Ed
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform