Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inserting a column in a grid
Message
 
 
À
09/07/2001 17:25:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00528362
Message ID:
00528444
Vues:
22
>Thanks Trey, I have also found I can click and drag a column. So if I increase the columncount by 1 (as you suggested) it adds the new column. I then clicked and draged the column to where I wanted it!
>
>However, in a FOR EACH oCol in THISFORM.grdAsso.COLUMNS, VFP still thinks it's the 10th column and not the 2nd, which it appears to be.
>
>Thanks again for the input.
>Julian
>
>PS: Any thoughts on this ordering?

Columns number is the number in the creation sequence. You can place this new column in any position, but it still would have last number in the columns collection and you could not change it. That's very inconvenient, especially if you're using ActiveColumn property... So, you can not assume that ColumnOrder = n and it would be the same as Columns(n) :( I've just had an application, where I had to remove one column. I found its number empirically :)
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform