RowDeleted
DataRowChangeEventHandler RowDeleted;
The RowDeleted
event is raised after a row is
deleted from the table.
The following code demonstrates how to handle the
RowDeleted
event:
DataTable dt = new DataTable(); dt.RowDeleted += new DataRowChangeEventHandler(dt_RowDeleted); private void dt_RowDeleted(object sender, DataRowChangeEventArgs e) { MessageBox.Show("RowDeleted: Action = " + e.Action + "; " + "Row Id = " + e.Row["Id"].ToString()); }
The event handler receives an argument of type
DataRowChangeEventArgs
, which contains properties
that provide specific information about the event as described in
Table 23-14.