Geoff,
I have overlooked VFP9's lockcolumns property. I stand corrected, it works better. Set lockcolumns (not LocColumnsLeft - splitbar = .f.).
Cetin
>It would be really nice to be able hide the scroll bars in the left partition if PanelLink = .T.
>
>Regards
>Geoff Scott
>
>>>I'm using VFP9 and i'm hoping to lock the first 4 columns in a 20+ column grid so that when the user scrolls to the right, the first 4 columns remain visible (similar to excel).
>>>
>>>I thought this is what PARTITION and SPLITBAR properties are for. But cant get it to work. I
had set SPLITBAR to true on the grid and set PARTITION to 4. After saving the form i cant run it or even MODIFY the form. I had to hack the scx and remove those 2 settings from the PROPERTIES field for the grid row in the SCX in order to be able to modify the form again.
>>>
>>>Can these 2 properties be used to lock columns?
>>
>>Splitbar only tells if there would be a split and partition tells the grid partition's width.
>>IMHO though not perfect below code works better then LockColumn* of VFP9 (and works with older versions):