Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I get rid of some columns in my grid?
Message
 
À
21/06/1999 10:13:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00232102
Message ID:
00232117
Vues:
20
>Hi all.
>
>I have a grid. Based on some condition, I want to deactivate some columns. I have tried setting the column with to 0 and then setting the column's sizable property to .F..
>
>Two problems:
>There is a small space between columns when I use this approach, and the columns still receiving focus.
>
>How can I do to get rid of the columns? I can't add code to the grid, I just can manage properties.
>
>TIA
>
>Victor

Since you only have property access use the width and enabled to 'remove' the column and get rid of the tab stop. The columnorder setting will move the small space to the beginning or end of the grid.

thisform.grid1.column2.width = 0
thisform.grid1.column2.enabled=.f.
thisform.grid1.column2.ColumnOrder=1
-TomC
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform