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:
00232343
Views:
12
>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

Victor,

I have this code in the init of my grid. Based on some user preferences, I can decide which elements to display. However, this might not be as dynamic as what you want.

José
Grid.Init()

DODEFAULT()
IF ! goApp.lUseAction
  this.RemoveObject( "grcActionId")
  this.grcMemo.Width =  this.grcMemo.Width + 125
ENDIF

IF ! goApp.luseExtrait
  this.RemoveObject( "grcExtrait")
   this.grcMemo.Width =  this.grcMemo.Width + 41
ENDIF

IF ! goApp.lUseMerci
  this.RemoveObject( "grcMerci")
  this.grcMemo.Width =  this.grcMemo.Width + 33
ENDIF

IF ! goApp.lUseAtt
  this.RemoveObject( "grcAtt")
  this.grcMemo.Width =  this.grcMemo.Width + 20
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform