ComponentOne True DBGrid Pro 8
BeforeRowColChange Event

 

Object Reference> True DBGrid Events> BeforeRowColChange Event

BeforeRowColChange Event

The BeforeRowColChange event occurs when the user attempts to move to a different cell using the navigation keys or the mouse.

Syntax

TDBGrid_BeforeRowColChange (Cancel As Integer)

Arguments

Cancel is an integer that may be set to True to prevent the user from changing the current cell.

Remarks

This event fires regardless of whether the current cell is modified.

Setting the Cancel argument to True prevents the user from moving to a different cell. If you do not cancel this event, the behavior depends upon the modification status of the current cell. If the current cell is unmodified, then cell movement proceeds as usual and the RowColChange event fires. If the current cell is modified, then cell movement may be restricted by the BeforeColUpdate, BeforeUpdate, or BeforeInsert events, in which case the RowColChange event will not fire.

Note

The BeforeRowColChange event does not fire if the current cell is changed in code, such as by setting the Bookmark or Col properties of the grid.

See Also

TDBGrid Control

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback