1
Answer

BindingList Filter on Linq to SQL bindingsource

Samio

Samio

12y
6.3k
1
Is it possible to Filter a BindingList passed to a bindingsource control:

private void button1_Click(object sender, EventArgs e)
{
  if (textBox1.Text.Length == 0)
  {
     productBindingSource.Filter = null;
  }
  else
  {
     productBindingSource.Filter = "ProductName = '" + textBox1.Text + "'";
     //productBindingSource.RemoveFilter();
  }
}

Thanks in advance.
Answers (1)