Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Base Grid on Cursor -- Any problems? Any Tricks?
Message
De
12/01/2000 19:45:17
 
 
À
12/01/2000 19:20:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00317290
Message ID:
00317340
Vues:
22
>>Before you rebuild the record source cursor, set the RecordSource property to "", rebuild your cursor, and then set it back to your cursor name.
>
>You got it. I found out that setting the RecordSource property again made the data appear. I'll do it the way you suggest.
>
>I'm remembering now that contained objects are initialized first and the container last. So of course there was no cursor when the grid was first instantiated.
>
>I tried arranging the columns in the cursor in the same order as the grid columns and leaving the ControlSource for each of the column textboxes empty. But when I loaded the grid with data it added 6 columns (to match the cursor) and changed all of my column widths. So it looks like I need to set all of the textbox ControlSource individually.

If you create a cursor in the Form.Load event, it will be available when the grid instanciates. I do this all the time, and retain grid property settings. Just remember to blank out the recordsource before recreating the cursor on the fly, and set it back afterwards.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform