Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursor in a grid
Message
De
08/03/2007 11:05:56
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
08/03/2007 10:50:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01201093
Message ID:
01201935
Vues:
35
>>>>My trick for this is to set the grid's recordsource and all the columns' controlsources at design time, and then just make sure all of them exist at runtime. I have to confess that I'm doing almost all of it in command window :).
>>>
>>>I wasn't sure whether that would be allowed, setting controlsource names in a grid before, possibly, the actual cursor is created.
>>
>>No problem at design time. At run time, make sure the cursor exists before the grid instantiates.
>
>Which it would do, at .Load, as that's evaluated before the grid is.

Exactly - or, if DE is in use, in one of its before* events.

As I said elsewhere, in some cases I'm creating the grid programmatically. Then I set up the cursor and the grid itself in grid's .init().

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform