Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid column with zero width leaves an ugly line.
Message
De
28/04/2009 13:40:46
 
 
À
28/04/2009 01:16:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01396614
Message ID:
01396754
Vues:
132
>I have a grid with about 11 columns that I just set the recordsource on the whole grid and let it show all columns from the alias.
>
>Now, I want to "hide" columns 8,9, and 10.
>
>When I set those columns widths to 0, I get this ugly thick line that is from the column being collapsed.
>
>How can I address this?
>
>I tried setting column.Visible=.f., but that just moves column 11 to the place of column 8, and the column 8 data still shows up.
>
>I want 1 - 7 and 11, but without hand-coding the controlsource of each column, hopefully.

Have you reorder the columns ?

On this case you cannot use columnIndex:
Grid.ColumnName.Visible = .F.
....

* or
FOR EACH cl IN grid.columns
  IF INLIST(m.cl.ColumnOrder,8,9,10)
      cl.Visible = .F.
      EXIT
  ENDIF
NEXT
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform