Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting the default width on all columns in a grid
Message
De
23/08/2005 10:40:46
 
 
À
23/08/2005 10:27:07
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01042887
Message ID:
01042931
Vues:
21
>>Hilmar
>>
>>I thought of SetAll but, as the container is the column, for which you want to set the property, width, how'd you know which column? Does it work with the .Columns collection? I opted to suggest a small for loop for this.
>>
>>Terry
>
>I didn't use it very much, so I am not quite sure. But I suppose .SetAll() can be applied to the grid?

No, I can't see that; the syntax is:

Container.SetAll(cProperty, Value [, cClass])

So this would be Thisform.grdMyGrid.SetAll( "Width", 200) && so setting the width of the grid, or
Thisform.grdMyGrid.ColumnX.SetAll( "Width", 200)

So you'd need to specify which column and, as there's only one Width property to it, setall is redundant.
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform