ComponentOne DataObjects for .NET
AfterFieldChange Event (BaseDataTableSource)

C1.Data.2 Assembly > C1.Data Namespace > BaseDataTableSource Class : AfterFieldChange Event
Fired after a field value is set.
Syntax
'Declaration
 
Public Event AfterFieldChange As FieldChangeEventHandler
public event FieldChangeEventHandler AfterFieldChange
Event Data

The event handler receives an argument of type FieldChangeEventArgs containing data related to this event. The following FieldChangeEventArgs properties provide information specific to this event.

PropertyDescription
The table object where the event has occurred.  
The field changing value.  
The field value after change.  
The field value before change.  
The row where the event has occurred.  
Remarks
This event, among other possible actions, allows other fields/rows/tables to be modified depending on this field. The new value is already assigned to the field, and the old field value is also available in this event, in its OldValue argument. Knowing the old value can be useful, for example, in updating counters, where you may need to add the new value and subtract the old one.
See Also