this.parent.parent.RightClick()What I have done is create a general shortcut menu method on my base form called m_Control_RightClick() and call it from the RightClick() method of every control, thusly...
* Control.RightClick() * RETURN thisform.m_Control_RightClick( this )In the m_Control_RightClick() method you can distinguish controls on a grid from other controls by examining the control's .parent property.
* BaseForm.m_Control_RightClick() * LPARAMETERS toControl LOCAL llIsOnGrid llIsOnGrid = ( UPPER( toControl.parent.BaseClass ) == 'COLUMN' ) IF llIsOnGrid * Display shortcut menu for grid controls. ELSE * Display shortcut menu for all other controls. ENDIF RETURNI hope this at least starts to answer your questions.