n=0 FOR i=1 to this.ColumnCount-1 n = n + this.Columns[i].width endfor * bittest is there in case we don't have a vertical scrollbar this.Columns[this.columncount].width=this.width-n ; -iif(bittest(this.ScrollBars,1),Sysmetric(5)+this.ColumnCount,0)-4The sysmetric() call gives the width of the vertical scrollbar. And 4 is the rule-of-thumb amount for the grid's own border, padding etc whatever it may have.