Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hide certain columns in grid based on a cursor
Message
De
26/10/2002 12:35:34
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
26/10/2002 06:57:43
Sammy Derban
Ghana Telecom
Accra, Ghana
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00715744
Message ID:
00715763
Vues:
11
>Hello all,
>How can i hide certain columns in grid based on a cursor.
>When i set the column with to zero it takes the default column width.
>My current alternative is to set to one which also make them a little visible and clumsy.
>i don't want to alter the fields in the table either.
>Is there a better way?

Unfortunately it's hard to do this in the current version of FoxPro. MS has fixed this in 8.0, though, by making the visible property for columns actually work. *g* For now it would be klunky. I think in the past I used a combination of setting the Visible to .F. and the Width to 0. IIRC, the former was necessary so the user couldn't resize the column.

8.0 is due to be released next spring or summer I think.

Otherwise, you could write code to remove the columns you don't want, but then add them back in when you do want them. The best way to handle that is to create (programmatic) subclassed columns.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform