>Hello all,
>Is it posssible to hide columns in a grid. I get no result when i set the visible property of the column to .f.
>
>Thanks in advance.
You have two possibilities:
1 - As Craig told you, but you will have a extra thick separation between columns. But this can be hided and unhided whatever you like in the code
2 - Reordering and changing columncount, more programming but withouth this thick line, but I used this one time in the init event of the grid, and you will lost your column till next run:
For example, in a 10 column grid I want to hide column3, so i put this in the init event, so if you hide the column you are deleting the column:
this.column3.columnorder=10
this.column4.columnorder=3
this.column5.columnorder=4
this.column6.columnorder=5
this.column7.columnorder=6
this.column8.columnorder=7
this.column9.columnorder=8
this.column10.columnorder=9
this.column2.width=this.column2.width + this.column3.width + 1
this.columncount=9