private void RejectedRequestDelete() { int Id = 0; int tableNo = 0; foreach (GridDataItem gvr in this.gvProfileIncreamenetReject.Items) { CheckBox checkBox = (CheckBox)gvr.FindControl("chkId"); if (checkBox.Checked) { int selectedRow = 0; GridDataItem gdi; gdi = (GridDataItem)checkBox.NamingContainer; selectedRow = gdi.ItemIndex + 1; Id = int.Parse((gvProfileIncreamenetReject.MasterTableView.DataKeyValues[selectedRow - 1]["ID"].ToString())); tableNo = int.Parse((gvProfileIncreamenetReject.MasterTableView.DataKeyValues[selectedRow - 1]["TableNo"].ToString())); uploadCommonBo.DeleteRequestRejected(Id, tableNo); } } if (Request.QueryString["ReqId"] != null) { reqId = Int32.Parse(Request.QueryString["ReqId"].ToString()); } GetProfileIncreamentRejection(reqId); }