i have a table adapter called Tabone and i want to create a query a column where i can retrieve values that are like or contains some character or prefix from the query string .
for example : if i write in a textbox 20 it retrieves all records which contains 20 whether in the beginning or middle or end and each time i add more character it filters more records.
i thought of using textbox_textchanged event
my sql query was :
select [ID] [Name] [description] from [Tabone] where [Name] like ?
but it does not do the job
.GetDatamethod. Then you can use the.Select(string)method on the resulting DataTable to get the rows your are interested in. No need to hit the database again.like '%" & textbox1.Text & "%'"