ComponentOne DataObjects for .NET
AfterFirstChange Event (BaseDataTableSource)

C1.Data.2 Assembly > C1.Data Namespace > BaseDataTableSource Class : AfterFirstChange Event
Fired after first change is made to a row (a field value changes) after the row last entered edit mode.
Syntax
'Declaration
 
Public Event AfterFirstChange As RowChangeEventHandler
public event RowChangeEventHandler AfterFirstChange
Event Data

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

PropertyDescription
The action that has occurred.  
The table object where the event has occurred.  
For a deleted row, in BaseLogic.AfterDelete event, the array of field values in the row before the row was deleted. This property is not set in events other than AfterDelete. This property must be used in BaseLogic.AfterDelete event to access row values because they are not accessible through regular row properties after the row has been deleted.  
For events BaseLogic.BeforeEndEdit, BaseLogic.AfterEndEdit, this property indicates whether the row has been modified while it was in edit mode. This property is often needed in BaseLogic.BeforeEndEdit/ BaseLogic.AfterEndEdit because data-bound controls begin edit mode when they position on a row and end edit mode when they leave the row, even if no changes have been made to the row in the process.  
Parent row.  
The row where the event has occurred.  
Remarks
This event occurs after the first change has been successfully performed on a row. It can be used, for example, for showing some user interface clues indicating that the row has been changed (canceling them in AfterCancelEdit and AfterEndEdit, if necessary). After the AfterFirstChange event has been fired for the first time, successive changes to row fields do not fire the BeforeFirstChange/AfterFirstChange events until the row leaves edit mode.
See Also