Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid column with zero width leaves an ugly line.
Message
From
28/04/2009 13:40:46
 
 
To
28/04/2009 01:16:25
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01396614
Message ID:
01396754
Views:
133
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform