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:50:48
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
23/08/2005 10:40:46
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:
01042940
Vues:
20
>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.

Unlike many other methods, SetAll() is not supposed to modify the container, but the contained objects. In other words, Grid.SetAll(...) will change objects contained within the specified grid.

The following sample - on a separate CommandButton - works fine for me:
ThisForm.Grid1.SetAll("Width", 30)

* or:

ThisForm.Grid1.SetAll("Width", 30, "Column")
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform