Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hiding colums in a grid
Message
 
 
To
01/07/2001 16:45:17
Sammy Derban
Ghana Telecom
Accra, Ghana
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00525711
Message ID:
00525720
Views:
16
>Hello all,
>Is it posssible to hide columns in a grid. I get no result when i set the visible property of the column to .f.
>
>Thanks in advance.

You have two possibilities:

1 - As Craig told you, but you will have a extra thick separation between columns. But this can be hided and unhided whatever you like in the code

2 - Reordering and changing columncount, more programming but withouth this thick line, but I used this one time in the init event of the grid, and you will lost your column till next run:

For example, in a 10 column grid I want to hide column3, so i put this in the init event, so if you hide the column you are deleting the column:

this.column3.columnorder=10
this.column4.columnorder=3
this.column5.columnorder=4
this.column6.columnorder=5
this.column7.columnorder=6
this.column8.columnorder=7
this.column9.columnorder=8
this.column10.columnorder=9
this.column2.width=this.column2.width + this.column3.width + 1
this.columncount=9
Pablo Roca
Clavo Congelados, S.A. (La Coruna - Spain)
Sysop of PortalFox

Join MasFoxPro campaign
http://www.masfoxpro.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform