bindingsource.filter

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I set a filter variable in code. I can't find any help on this.
This works but is not very useful
HorsebindingSource.Filter = "CODE='SMIT'";

I would like to do something like this but it doesn't work.
HorsebindingSource.Filter = "Code = 'codeTextBox.Text'";

Thanks Jon Stroh
 
Hi,

Did you probe HorsebindingSource.Filter = "Code = '" + codeTextBox.Text +
"'"; ?
 
Back
Top