private void CustomerTrailCommissionTransactionDelete() { UploadCommonBo uploadsCommonBo = new UploadCommonBo(); foreach (GridDataItem gvr in this.GVTrailTransactionRejects.Items) { if (((CheckBox)gvr.FindControl("ChkOne")).Checked == true) { int selectedRow = gvr.ItemIndex + 1; int StagingID = int.Parse((GVTrailTransactionRejects.MasterTableView.DataKeyValues[selectedRow - 1]["CMFTCCS_Id"].ToString())); uploadsCommonBo.DeleteMFTrailTransactionStaging(StagingID); BindTrailCommissionRejectedGrid(processId); } } }