Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid column order not behaving properly
Message
De
26/01/1999 10:26:34
Senna Dwipayana
Indo Rebel Apparel Cv
Bandung, Indonésie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00180072
Message ID:
00180247
Vues:
20
Hi Marie,

>with this.grid
>.recordsource = tablename
>.columncount = 11
>.column1.controlsource = tablename.field11
>.column1.controlorder = 1
>.column2.controlsource = tablename.field1
>.column1.controlorder = 2

I think there no "column.controlorder" properties

if you want to change column order, try this :
With This &&&&& you don't have to put ".grid" in grid method itself .COLUMN1.COLUMNORDER=2
.COLUMN2.COLUMNORDER=3
.COLUMN3.COLUMNORDER=1
EndWith

And If You want to to Change Column.ControlSource

With This
.COLUMN1.CONTROLSOURCE='myTable.myField2'
.COLUMN2.CONTROLSOURCE='myTable.myField1'
.COLUMN3.CONTROLSOURCE='myTable.myField3'
EndWith

But if you want to add a field in your grid.recordsource table, you might have to add :

This.recordsource=This.recordsource

In grid.refresh() or before calling refresh method

HTH,

Senna
Senna Dwipayana
Being good is better
Being better is a bless
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform