private void PostDeleteManual(ARecurringGiftBatchRow ARowToDelete, bool AAllowDeletion, bool ADeletionPerformed, string ACompletionMessage) { FDeleteLogicObject.PostDeleteManual(ARowToDelete, AAllowDeletion, ADeletionPerformed, ACompletionMessage); if (ADeletionPerformed) { //Reset row to fire events SelectRowInGrid(FDeletedBatchRowIndex); UpdateRecordNumberDisplay(); //If no row exists in current view after cancellation if (grdDetails.Rows.Count < 2) { UpdateChangeableStatus(); } // ((TFrmRecurringGiftBatch)ParentForm).EnableTransactions((grdDetails.Rows.Count > 1)); //SelectRowInGrid(FDeletedBatchRowIndex > 0 ? FDeletedBatchRowIndex : 1); } }
private void PostDeleteManual(ARecurringGiftBatchRow ARowToDelete, bool AAllowDeletion, bool ADeletionPerformed, string ACompletionMessage) { FDeleteLogicObject.PostDeleteManual(ARowToDelete, AAllowDeletion, ADeletionPerformed, ACompletionMessage); if (ADeletionPerformed) { UpdateChangeableStatus(); ((TFrmRecurringGiftBatch)ParentForm).EnableTransactions((grdDetails.Rows.Count > 1)); SelectRowInGrid(FDeletedBatchRowIndex > 0 ? FDeletedBatchRowIndex : 1); } }