OnHeaderRightClick - cCJGrid
Called when a user right clicks on a header column
Type: Event
Parameters
| Parameter | Type | Description |
|---|---|---|
| iCol | Integer | The selected column number, -1 if no columns is selected |
Syntax
Procedure OnHeaderRightClick Integer iCol
Description
OnHeaderRightClick is called when the user right clicks on a header. This is used to invoke a header context menu. It does the following:
- Get the phoHeaderContextMenu to a handle. This is the default header context menu for the grid.
- If a column exists (iCol is not -1), call HeaderContextMenu of 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.
- If the returned handle is non-zero, invoke the context menu.