Information générale
Catégorie:
Codage, syntaxe et commandes
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement