3
I have a textbox and want, when typing something, the datasource of my gridFornecedor 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:
How do you suggest I search the bank? By clicking a button? I do so because it is more interactive.
– Italo Rodrigo
Maybe it’s better. Understand that I only warned you because could be a problem, doesn’t mean it already is. If you know that data traffic won’t be great and that won’t be a problem, keep it even =D
– Jéf Bueno