Hi Dragan
I always create the columns at runtime. This inherited from a grid highlighting class. I never deal with the PEM Window here. ::)
I do not use scx at all so there is no drag'n'drop and before BINDCONTROLS I even set all controlsources via code. (I have some simple picklist forms that will have changeable datasources too)
anyway one could do things like
.grid.RemoveObject(.grid.columns(8).name)
Agnes
Agnes
>>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'
>
>Shouldn't columns have real names, like colAmount, colSelectButton, colFullName? Makes navigation in PEM window so much faster.
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]