MSG-GRID-RBUTTON-UP (value 16427)

This event occurs when the user releases the right mouse button. The event behaves in the same manner as the MSG-GRID-RBUTTON-DOWN event. Once this event finishes processing, any pop-up menu associated with the grid is displayed normally.

One way you can use this event is to select an appropriate pop-up menu depending on the cell clicked. For example, you may want different pop-up menus for the headings and the body of the grid. You can examine the cell clicked in this event and set the appropriate pop-up menu for the control. The selected menu appears after the event has finished.