function isInGrid return type("thisform.activecontrol") = "O" ; and thisform.activecontrol.baseclass = "Grid"