ComponentOne True DataControl 8.0
Using Recordset Events

True DataControl fires events when a change occurs in its recordset. The recordset events fired by True DataControl are essentially the same as the corresponding events of the standard ADO data control (Microsoft ADODC), with the exception of the WillChangeField event. These events occur when current record position changes, recordset fields change, recordset rows change, and when the whole recordset changes. The difference in WillChangeField is due to a poor design of the standard ADO WillChangeField event, which does not provide the new value that is about to be assigned to a field. Knowing this value is essential to the programmer, True DataControl uses different arguments in its WillChangeField event. All other recordset events adhere to the ADO specification. You can look them up either in the ADO documentation, or in the Reference section of this document.

WillMove

Occurs before the current record position changes.

MoveComplete

Occurs after the current record position has changed.

WillChangeField

Occurs before a field value changes

FieldChangeComplete

Occurs after a field value has changed

WillChangeRecord

Occurs before a record is added/deleted/updated/restored

RecordChangeComplete

Occurs after a record has been added/deleted/updated/restored

WillChangeRecordset

Occurs before the whole recordset is changed

RecordsetChangeComplete

Occurs after the whole recordset has changed

 

 


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

Product Support Forum  |  Documentation Feedback