*[2004/08/16 11:57:28] dragan - recalculate the width of the last column, * depending on width of the vertical scrollbar n=0 FOR i=1 to this.ColumnCount-1 n = n + this.Columns[i].width endfor *[2004/12/23 08:31:57] dragan - adjust for absence of vertical scrollbar nWidth=this.width-n-iif(bittest(this.ScrollBars,1),Sysmetric(5)+this.ColumnCount,0)-4 if nwidth>0 this.Columns[this.columncount].width=nWidth endifHowever, this is not perfect - this works only if at least some of the last column would be visible, i.e. the total width of the previous columns is less than the inner width of the grid. If not so, it would try to assign a negative value, and bang - which is why "if nwidth>0" is there, and then it would to just nothing, but calculate in vain.