Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I get rid of some columns in my grid?
Message
 
 
To
21/06/1999 10:13:56
Victor Chigne
Inteliventas
Peru
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00232102
Message ID:
00232117
Views:
19
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform