>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