if mdown() *We clicked somewhere lnNewRow = 0 this.GridHitTest(mcol(), mrow(), '', @lnNewRow) if lnNewRow <> this.relativerow *** We are moving rows! else *** We are moving columns! endif else if inlist(lastkey(), 18, 3, 5, 24) *** We are moving rows! else *** We are moving columns! endif endifBTW, is this VFP7? THere is new functionality built in for this in 7.0.