'Declaration Public Event BeforeFieldChange As FieldChangeEventHandler
public event FieldChangeEventHandler BeforeFieldChange
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 can be used to specify validation logic that cannot be specified in the form of constraint expressions. Throwing an exception in this event disallows the change. When this event occurs, the field value is not yet modified. The new (proposed) value is available in the NewValue argument of the event.
See Also
Reference
BaseDataTableSource Class
BaseDataTableSource Members
BaseLogic Class
C1TableLogic Class
C1DataSetLogic Class
Events on Modifying Row