Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids and Hiding Columns
Message
De
18/12/1998 10:22:51
 
 
À
18/12/1998 05:53:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00168776
Message ID:
00168853
Vues:
24
>Is there anyway of completely hiding a column on a grid without having to resort to mind-boggling wizardry?
>In other words can only the P.E.M. within the grid be used to achieve this?
>
>At the moment the best that I can do is have the vertical column line faintly displayed when the column width is set to zero.
>
Clinton,

I'm afraid programmatic wizardry is going to be your only choice with a VFP column. As I'm sure you have found out, setting a column to !.visible has no discernable effect (although I think it sets the _contents_ of the column invisible -- it's been a long time since I looked at it).

When I needed to make selected columns invisible, I tried setting width to zero and making them invisible to no avail, and finally ended up reconstituting the grid with the necessary columns programmatically on the fly. It's truely not that difficult.

You can store the features you want each column to have in a table, select the data into an array and build the columns by stepping through the array. In this manner you can conditionally select the columns you require.

Sorry, but I can think of no simpler answer.

regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform