Name
DataRowChangeEventHandler
Synopsis
This delegate represents the method that handles one of four
DataTable
events:
DataTable.RowChanging
,
DataTable.RowChanged
,
DataTable.RowDeleting
, or
DataTable.RowDeleted
. These events fire during
and after data edits. Those that fire before a change is committed
(DataTable.RowChanging
and
DataTable.RowDeleting
) are useful for validation.
In the case of an edit, you can evaluate the proposed change by
examining the DataRowVersion.Proposed
value for
the DataRow
. The events that fire after a change
is committed (DataTable.RowChanged
and
DataTable.RowDeleted
) are useful for tasks such
as synchronizing controls or providing information in a status bar.
public delegate void DataRowChangeEventHandler(objectsender
, DataRowChangeEventArgse
);
Associated Events
DataTable.{RowChanged( )
, RowChanging( )
, RowDeleted( )
,
RowDeleting( )}
Get ADO.NET in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.