Click here to Skip to main content
15,887,322 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi i want to add this filter to binding Source but dosn't work
C#
bs.Filter = "code like '%" + txtin + "'%";


please help me.tnx
Posted
Comments
OriginalGriff 1-Mar-14 7:47am    
"doesn't work" is not exactly helpful: what does it do that you didn't expect, or not do that you did?
mosi98 1-Mar-14 7:54am    
'like' isn't work in my visual studio 2010

1 solution

Try this:
C#
bs.Filter = "code like '%" + txtin + "%'";


What has been changed?

beforeafter
"'%";"%'";
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900