Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement