vb.net - vb. net bindingsource filter -


I am using visual.net 2012 - I use this code to filter bindings by text code I'm doing - all the work is fine but when I delete it, text bindings in textbox show only those rows that have the value. This is my code:

  Private sub text box 2 Tag aspect (as the sender in the form of the object, and EventArgs) TextBox2.TextChanged SalesBindingSource.Filter = "[ Like '%' & amp; Text Box 2 Text & amp;   

text "itemprop =" text ">

If there is no text, you Filter needs to be removed:

  Private sub text box 2_Text converts (as the sender, and EventArgs as objects) TextBox2.TextChanged SalesBindingSource .filter = if ((Textbox2.Text. Length & gt; 0), "[%]" and "textbox" like "[REF] 2. Text and"% '"," ") sub  

Comments