Occurs prior to focus moving to another cell.
[Visual Basic]
Public Event BeforeRowColChange As CancelEventHandler
[C#]
public event CancelEventHandler BeforeRowColChange
[Delphi]
public property BeforeRowColChange: CancelEventHandler read remove_BeforeRowColChange write add_BeforeRowColChange;
Remarks
Setting the CancelEventArgs.Cancel property to True prevents the user from moving to a different cell. If this event is not canceled, 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 is raised. 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 RowColChange event does not fire if the current cell is changed in code, such as by setting the Bookmark or Col properties of the grid.
Example
For more details on the BeforeRowColChange event, see the Restricting Cell Navigation topic.
See Also
C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |