>>Hi. I have code in a method that reads someething like:
>>ThisForm.pgItems.conItems.grdQuoteList.Column9.visible = .t.
>>
>>When I run the code, I get the message that Column9 is not found.
>>
>>Does anyone have any ideas how I can make column9 visible (with no error).
>>
>>Thanks, Randy
>
>Randy,
>In VFP7 making a column.visible = .f. is nonsense
Well not really. It leaves the column as-is but disappears the data in the column.
Randy, you sure you haven't renamed the column like ".colQuoteVal"?)
You can always access the nth column via the .columns() array.
i.e. ThisForm.pgItems.conItems.grdQuoteList.Columns( 9).visible = .t.
However it won't disappear the col. I'd suggest Fabio's .Width soln.
>>
so I think you don't have that column at all. If you mean you have less than 9 columns then you can do:
>.ColumnCount = 9
>
>Cetin
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.