'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.
Property | Description |
---|---|
DataTable | The table object where the event has occurred. |
Field | The field changing value. |
NewValue | The field value after change. |
OldValue | The field value before change. |
Row | 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
Reference
BaseLogic Class
BaseLogic Members
C1TableLogic Class
C1DataSetLogic Class
Events on Modifying Row