Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hide certain columns in grid based on a cursor
Message
From
26/10/2002 12:35:34
 
 
To
26/10/2002 06:57:43
Sammy Derban
Ghana Telecom
Accra, Ghana
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00715744
Message ID:
00715763
Views:
10
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform