>>Add a zero width "false" (when={;return .f.}) column as the last column and "butt" the right border of the grid next to it. Never tried it.
>>
>>Removing the headers and using labels instead [of column headers] as well as setting the horizontal scroll has worked for me. Sysmetrics has a bunch of arguments that will forward dimensions of almost all the visual controls. Perhaps SYSMETRICS can offer tighter "pixel" width management.
>>
>>Isn't it about time you stepped up to listview?:-)
>
>Adding the vertical scroll bar will do but the problem still remain when moving from right to left. I see also that the vertical scroll bar in VFP 8 has an offset of one pixel on the right side.
I meant dropping the horizontal. I tried in a grid that does not have column header. It is a six column grid. The grid width is 379. With the total of the column widths adding to 374, the behavior you described occurred. So I took one pixel off the right most column and it worked. The new combined witdt of the columns was 373 - and the grid did not pop to left when I tabbed out of the column just before the last one.
The formula seems to be: total column widths+ # of columns = grid width
In my case it was 373+6=379 - and it worked - I could not locate a line or column border width for the grid. But it did quit popping left when the elements above added to grid width.
Imagination is more important than knowledge