Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00403742
Message ID:
00403915
Vues:
8
grid.DeleteColumn(<i>nColumnOrder</i>)
Be aware though, that once you've removed a column, the column numbers all get shifted, so what was column 3 before a DeleteColumn(2), will now be column 2.

You could also use
grid.RemoveObject("Column2")
or
* for each column you want to set order for
** in this case, set column5 first, column 8 second, remove rest
WITH grid && needs full object path, but just for the example
  .Column5.ColumnOrder = 1
  .Column8.ColumnOrder = 2
  .ColumnCount = 2
ENDWITH
>Hi:
>I have a problem with a grid that has 10 columns and depending on a variable based on the first column, needs to have less columns (sometimes as little as 2). I think that the RemoveObject Method (help says Object.RemoveObject(cObjectName) might help but I am not sure of how to implement it in on the grid.
>Any hints?
>
>Thank you.
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform