>&& grid.MinimumHeight >return ( this.HeaderHeight ; > + this.GridLineWidth ; > + iif( inlist(this.ScrollBars,SCROLLBARS_HORIZONTAL,SCROLLBARS_BOTH), ; > sysmetric(SYSMETRIC_HSCROLLBARHEIGHT), ; > 1 ; > ) ; > )PMFJI, I've just tested your code and found out that I need to have a 2 instead of a 1 on my machine. Just wanted to let you know... BTW: I'm running VFP7SP1 on Win XP.