>The sum of my column widths is 775. I set the grid width to 776, and hit tab. The grid still shifts over. I shall continue to look at this, and think that your suggestion is close, but if you have any further insights, I would appreciate them.
>
>Thanks,
>Marie
Actually, I should have been more specific. Arrange the grid width visually so that it is one pixelwider than the rightmost column's border.
to do it programmatically or in a builder, you have to use something like:
TotalColWidth = 0
FOR i = 1 TO THIS.COLUMNCOUNT
TotalColWidth = TotalColWidth + THIS.COLUMNS(i).WIDTH
ENDFOR
DeleteMarkWidth = IIF(THIS.DELETEMARK, 8,0)
RecordMarkWidth = IIF(THIS.RECORDMARK, 10, 0)
ScrollBarWidth = IIF(THIS.SCROLLBARS > 1, SYSMETRIC(7), 0)
TotalGridLineWidth = THIS.COLUMNCOUNT * THIS.GRIDLINEWIDTH
NewGridWidth = TotalColWidth + DeleteMarkWidth + RecordMarkWidth + ScrollBarWidth + TotalGridLineWidth + 2
Erik Moore
Clientelligence