共用方式為


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 newly active row or column.

Remarks

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

See Also

ActivateCell Method | AfterRowColChange Event | DEFINE CLASS [NODEFAULT] | Valid Event

Applies To: Grid Control