/// <summary> /// This method populates JobCards /// </summary> public void PopulateRouteStatus() { InfoUserControl.TryRun(() => { CrewController crewManager = new CrewController(); List <JobCardStatus> cardStatus = crewManager.Get_JobCardStatus(); JobCardStatusGridView.DataSource = cardStatus; JobCardStatusGridView.DataBind(); if (cardStatus.Count > 0) { JobCardStatusGridView.Visible = true; JobcardTitle.Visible = true; } else { JobCardStatusGridView.Visible = false; JobcardTitle.Visible = false; } }); }