DataView.RowFilter question

E

Eric

For my webapp I'm building a search page where the user can search through
data stored in a xml file.
I thought I use the dataview Rowfilter property but it seems it only works
if the search text is exactly the same as the description text in the
datatable.

How, if possible, can I use RowFilter in a way that it will also select
those rows where the description contains the search text?

i.e.: description text = "This is a test"
Search text = "es"

This line would be shown because the search text is in the description text.

I tried with the LIKE operator but that seems to be the same as the =
operator.

any suggestions?

rg,
Eric
 
E

Eric

Never mind...I knew it was simple it just didn't pop up....

I used "*es*" as the search text and it did it...

rg,
Eric
 
E

Eric

Never mind...I knew it would be simple...it just didn't pop up...

I used as the seach text: "*es*" and that did it...

rg,
Eric
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top