BindingList Filter on Linq to SQL bindingsource
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.