private void GetData() { int.TryParse(cboSubContractor.SelectedValue, out _identityID); if (dteDateFrom.SelectedDate.HasValue) { _dateFrom = dteDateFrom.SelectedDate.Value; } if (dteDateTo.SelectedDate.HasValue) { _dateTo = dteDateTo.SelectedDate.Value; } AllOrganisationTotals = new List <OrganisationTotals>(); Facade.IJobSubContractor facJobSubContractor = new Facade.Job(); grdSubbies.DataSource = facJobSubContractor.GetAllSubContractedJobsForDateRange(IdentityID, DateFrom, DateTo, chkUninvoiceOnly.Checked); AllOrganisationTotals.Clear(); //grdSubbies.DataBind(); }