/// <summary>
/// Handles the Delete event of the rGridTransactions control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="Rock.Web.UI.Controls.RowEventArgs"/> instance containing the event data.</param>
protected void rGridTransactions_Delete(object sender, Rock.Web.UI.Controls.RowEventArgs e)
{
var financialTransactionService = new Rock.Model.FinancialTransactionService();
FinancialTransaction financialTransaction = financialTransactionService.Get((int)e.RowKeyValue);
if (financialTransaction != null)
{
financialTransactionService.Delete(financialTransaction, CurrentPersonId);
financialTransactionService.Save(financialTransaction, CurrentPersonId);
}
BindGrid();
}