I have a textBox and I want it, when typing something, the dataSource of my grid provider to be updated.
I'm using the code below:
private void txtNome_TextChanged(object sender, EventArgs e)
{
gridFornecedor.DataSource = modelOff.fornecedors.Where(p => p.nome.Contains(txtNome.Text));
}
I get the error below: