local i, j j = 10 + sysmetric( 5 ) + 2 * this.GridLineWidth && record marker & vertical scroll bar for i = 1 to this.ColumnCount with this.Columns[i] j = j + .Width + this.GridLineWidth endwith endfor return jIn this grid I have the DeletedMarker turned off otherwise you need another 10 pixels in the first assignment.