>>Thanks Nadya,
>>Yur message got me started, but I found that this works for every resize() I could think of.
>>
>>with Column
>> lnWidthTotal ;
>> = 3 ;
>> + IIF(.DELETEMARK,8,0) ;
>> + IIF(.RECORDMARK,10,0) ;
>> + IIF(.SCROLLBARS>1,sysmetric(5),0) ;
>> + .COLUMNCOUNT
>> for each loColumn in .Columns
>> lnWidthTotal = lnWidthTotal + loColumn.Width
>> endfor
>>endwith
>>
>>Do you have any idea why my formula works better for me? Maybe different screen resolutions?
>>
>After re-reading my formula I see, that mine is incorrect. Why I use GridLineWidth*2? Should it be (.ColumnCount-1)*GridLineWidth instead? May be that's why I added some numbers like + 10 here...
I discovered that GridLineWidth and GridLines (On or Off) don't affect the width of the Grid. (That caught me offguard).
I am curious as to what the 3 is needed for. Assuming that there is 1 pixel to the right of each column (therefore needing .ColumnCount), then 1 of the 3 would probably be the pixel to the left of Column1. But what are the other 2 for? My guess would be the borders (left & right).
Bill Morris