Hi Matt,
it would be usefull to have the VFP Version. Even on such stuff where changes over the years. I rember problems with column.visible in older versions.
Have yous imple tried to remove the columns you do not need ?
.grid.RemoveObject('colum8')
.grid.RemoveObject('colum9')
.grid.RemoveObject('colum10')
Note that this will not change the naming of colum11 but its position on the collection: column(8)!
you might change this
.grid.column11.name = 'column8'
HTH
Agnes
>I have a grid with about 11 columns that I just set the recordsource on the whole grid and let it show all columns from the alias.
>
>Now, I want to "hide" columns 8,9, and 10.
>
>When I set those columns widths to 0, I get this ugly thick line that is from the column being collapsed.
>
>How can I address this?
>
>I tried setting column.Visible=.f., but that just moves column 11 to the place of column 8, and the column 8 data still shows up.
>
>I want 1 - 7 and 11, but without hand-coding the controlsource of each column, hopefully.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]