Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid column order
Message
De
20/06/2003 15:07:11
 
 
À
20/06/2003 14:17:29
Scott Sherman
Puyallup Tribal Health Authority
Tacoma, Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00802359
Message ID:
00802384
Vues:
18
At the moment, I have hard coded resetting each column by it's name to it's original order. There has got to be an easier way.

Off the top of my head, you could add a custom array property to your grid and populate it at runtime in the init() of the grid with code ( UNTESTED! ) like this:
IF DODEFAULT()
  DIMENSION This.aColumnOrders[ This.ColumnCount ]
  FOR lnCol = 1 TO This.columnCount
    This.aColumnOrders[ lnCol ] = This.Columns[ lnCol ].ColumnOrder  
  ENDFOR
ENDIF
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform