For deleting a row with every option, the code will be written into OnDelete().
public override void OnDelete()
{
base.OnDelete();
if(dgZeit.IsKeyboardFocusWithin)
{
//convert the selected row to a DataSet row:
var deleteRueck = new dsRm.rueckm_afoRow(dgZeit.SelectedRow);
//delete the row
DeleteRueckmZeit(deleteRueck);
}
}
The „Delete” action will trigger the following OnDelete() Method