Skip to content

OnRowRightClick - cCJGrid

Called when a user right clicks on a data row / column

Type: Event

Parameters

Parameter Type Description
iRow Integer The selected row number
iCol Integer The selected column number

Syntax

Procedure OnRowRightClick Integer iRow Integer iCol

Description

OnRowRightClick is called when the user right clicks on a data cell.. This is used to invoke a context menu. It does the following:

  1. Get phoContextMenu to a handle. This is the default row context menu for the grid.
  2. If column focus is supported (pbFocusSubItems is false), it sends ContextMenu to the column object. It passes the current context menu handle and returns the context menu handle to use. By default, it just returns the handle passed to it.
  3. If the returned handle is non-zero, it attempts to move the column to the row and column. If this is successful, the context menu is invoked.