private void search() { var valueToSearch = textBoxSearch.Text.ToLower(); var result = _customerPresenter.Get(valueToSearch).Select(a => new { a.Id, a.CustName, a.Adress, a.CustomerType.Description, a.Status }); this.dataGridViewCustomer.DataSource = result.ToList(); }