Click here to Skip to main content
15,888,733 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am filtering a row using textbox but i am facing a problem
when i m doing this
dv.RowFilter = "id=" +textBox1.Text;
it does not give error id is integer type
but when i m trying to filter my dataview using any varchar type column
it gives error
for ex
dv.RowFilter = "name= +'textBox1.Text'";
giving error please give me solution
bhadouriaasit5@rediffmail.com
Posted

1 solution

try this instead:

dv.RowFilter = "name = '" + textBox1.Text + "'";
 
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