protected void dgvPaymentReport_RowDeleting(object sender, GridViewDeleteEventArgs e) { BusinessLayer.Common.MemberPayment ObjMemberPayment = new BusinessLayer.Common.MemberPayment(); int Id = Convert.ToInt32(dgvPaymentReport.DataKeys[e.RowIndex].Values["PaymentId"].ToString()); ObjMemberPayment.Delete(Id); LoadPaymentList(); }
protected void dgvPaymentReport_RowDeleting(object sender, GridViewDeleteEventArgs e) { BusinessLayer.Common.MemberPayment ObjMemberPayment = new BusinessLayer.Common.MemberPayment(); int Id = Convert.ToInt32(dgvPaymentReport.DataKeys[e.RowIndex].Values["PaymentId"].ToString()); ObjMemberPayment.Delete(Id); BindUploadList(); ShowMessage("Payment detail deleted successfully", true); }