public void Carregar_Grid() { if (this.InvokeRequired) { CarregarGrid CGrid = new CarregarGrid(Carregar_Grid); this.Invoke(CGrid); } else { using (Repository <Cliente> RepCliente = new RepositoryCliente()) { IQueryable <Cliente> Clientes = RepCliente.Query(); if (Clientes != null) { TimeSpan TimeS = TimeSpan.Parse("13:40:1"); dataGridView1.DataSource = Clientes.Where(g => g.Hora >= TimeS).Select(x => new { x.Codigo, x.Nome }).ToList(); dataGridView1.Update(); Clientes = null; label1.Text = "Carregado com êxito"; } else { label1.Text = "Error"; } } } }