Yuri - thanks for the reply. Was hoping to modify in design time so that other developers looking at the form down the road wouldnt wonder about the missing headers. Good suggestion i'll save for later.
I ended up making a backup copy of the scx, then hacking the scx to make some mods.
USE source\timesheet2weekstest.scx
BROWSE FOR LOWER(class)="header"
SCATTER MEMVAR memo
INSERT INTO timesheet2weekstest FROM memvar
I added rows in the scx for each missing header using the SCATTER / INSERT above. Then for each newly added row, i changed the PARENT field to reference the particular column.... TIMESHEET2WEEKS.Grdtime.Column
1.
The kicker was moving the COMMENT RESERVED record in the scx to the bottom of the table. VFP would not MODIFY FORM if that record was not at the bottom. So i SCATTERed on that row and INSERT INTO the scx, deleted the original COMMENT RESERVED row, packed the table, and it worked. Each column now has a "header" when viewed in the property sheet.
... update...
Now, when grid properties are viewed using the property sheet, the newly added "header" rows are out of order (compared to the VFP default). Still works and you do see the headers in design time when they were missing earlier. I'd mess with the order but dont see the need.
Column3
Text1
Header1
Column4
Text1
Header1
Column6
Header1
Text1
Column7
Header1
Text1
>Do not know what kind of framework/classes you are using; probably you may follow this:
>
>Grid.Column1.AddObject(object_name,"Header")
>
>and then set its properties as needed.
>
>
>>After hacking an SCX to remove framework references for a particular form and the form objects (now its all vanilla baseclasses), i now have a grid where some of the headers for some of the columns are missing. Viewed in the property sheet, form objects look something like the following.
>>
>>GrdTime
>> Column1
>> CboEmployee
>> CboProject
>> Column2
>> CboCostCode
>> Column3
>> Text1
>> Column4
>> Text1
>> Column5
>> Text1
>> Column6
>> Header1
>> Text1
>> Column7
>> Header1
>> Text1
>>
>>
>>I suspect that when the grid was first built, i may have removed the baseclass "Text1" textboxes from some columns when framework-specific textboxes were added. But i dont recall deleting column headers.
>>
>>Regardless, all works well. I have method code that sets the grid properties and it does reference headers for columns that dont appear to have headers (when viewed in the prop sheet).
>>
>>I'd like to add back those headers that appear to be missing. Any recommends?