>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