ComponentOne True DataControl 8.0
WillMove Event

 

WillMove Event

Occurs before the current row position changes.

Syntax

TData_WillMove (ByVal adReason As EventReasonEnum, adStatus As EventStatusEnum)

Remarks

Arguments: adReason is an ADO EventReasonEnum value. Specifies the reason for this event. Its value can beadRsnMoveFirst, adRsnMoveLast, adRsnMoveNext, adRsnMovePrevious, adRsnMove or adRsnRequery.

adStatus is an ADO EventStatusEnum status variable. When WillMove is called, this parameter is set to adStatusOK ,or to adStatusCantDeny, the latter means that this event cannot request cancellation of the pending operation. Before WillMove returns, set this parameter to adStatusCancel to request cancellation of the operation that caused this event.

The WillMove event is a standard ADO Recordset fired by the TData control’s Recordset. For more information, see Using recordset events. As with any ADO recordset, this event occurs before a pending operation changes the current position in the recordset. For TData control, it means that the current row position of the control changes, the control is being repositioned to a different row.

The WillMove event may occur due to the following Recordset operations: Open, Move, MoveFirst, MoveLast, MoveNext, MovePrevious, Bookmark, AddNew, Delete, Requery, and Resync.

The WillMove and MoveComplete events also occur for a child recordset (in a recordset hierarchy) when its parent recordset is repositioned. The adReason value is adRsnRequery.

See Also

TData Control

 

 


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

Product Support Forum  |  Documentation Feedback