Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Populating grid cells from a table
Message
De
29/02/2004 21:28:30
Mike Yearwood
Toronto, Ontario, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00881921
Message ID:
00881935
Vues:
29
Hi Anders

Set Grid.ColumnCount first, then set ColumnX.ControlSource.

>Hi,
>I've never worked with grids before and therfore probably this question is very basic, but however, I cannot get it work as I want it to work. My problem is that I want to populate the grid cells with data from myTable. This I can do by setting the Grid RecordSource to myTable and the RecordSourceType to Table. The problem is that I do not want the data to populate the columns in the same order as they are defined in myTable. I have tried to set the Columns CotrolSource to the field I want, for example myTable.field3 for Column1.ControlSource and so forth, but the result is that all rows show the same value, i.e. the first record in myTable. The field order is however in the right order as I have specified. What do I do to solve this problem?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform