private void CheckRowEvent(DataGridViewRowCancelEventArgs e) { if (e.Row == null) { throw new HabaneroApplicationException("The row cannot be deleted since the row event has a null row"); } }