BeforeRowColChange Event

Occurs when the user changes the active row or column before the new cell gets the focus. It also occurs before the Valid event of the current object in the grid column and any rules in the database. Use NODEFAULT to prevent the active row and column in the grid from changing.

PROCEDURE Grid.BeforeRowColChange
LPARAMETERS nColIndex

Parameters

  • nColIndex
    Returns the index of the column that is active before the row or column change.

Remarks

BeforeRowColChange is triggered interactively using the mouse or keyboard or programmatically, such as calling the ActivateCell method.

You can query the RowColChange property in this event to determine the type of change that triggered the event.

See Also

ActivateCell Method | AfterRowColChange Event | DEFINE CLASS [NODEFAULT] | RowColChange Property | Valid Event | NODEFAULT Command

Applies To: Grid Control