Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Populating A Grid
Message
 
 
À
20/07/2005 13:43:03
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01034339
Message ID:
01034394
Vues:
10
No need to remove it. Another option is to set BindControls to FALSE on the second form. After the cursor is created, set the BindControls property to .T. This allows you to define the RecordSource and ControlSource(s) for all your controls without having to have the cursor available at runtime. Then once the cursor is created, set that property to TRUE, and the controls will then bind to their respective sources.

>>Thanks Mark, I had set the recordsource to the cursor name in the form designer and builder, I didn't realize that I had to set it after the cursor is actually created. Does that mean I can remove it from the designer?
>
>Carmen
>
>After you create the cursor, you need to set the RecordSource property of the grid to the name of that cursor --
>>
>>ThisForm.GridName.RecordSource = 'CursorName'
>>
>>For the individual columns, you can set the ControlSource property --
>>
>>ThisForm.GridName.Column1.ControlSource = 'CursorName.Field1Name'
>>ThisForm.GridName.Column2.ControlSource = 'CursorName.Field2Name'
>>ThisForm.GridName.Column3.ControlSource = 'CursorName.FieldXName'
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform