private void btnPesquisar_Click(object sender, EventArgs e) { gridRegistros.DataSource = new BindingSource(new BindingList <model.Fornecedor>(_fornecedorRepositorio.getFornecedores(txtNome.Text)), null); gridRegistros.Refresh(); }
private void atualizaLista() { gridRegistros.DataSource = new BindingSource(new BindingList <model.Fornecedor>(_fornecedorRepositorio.getFornecedores(txtNome.Text)), null); gridRegistros.Refresh(); }