Non Exact Find in DataView

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a DataView with a string type column which is the sorted column.
Please help me, how to find a string in the column and I get the first
occurence of this string or substring.

Thank you!
 
Hi,

Use LIKE operator:
"ItemName LIKE '*product*'"

"ItemName LIKE '*product'"

"ItemName LIKE 'product*'"

You'll find more info in

DataColumn.Expression

..net help topic.
 
Mihaly,

You can use for that in my opinion the datatable.select with the "Like
statement" and than after that with the keys of the founded row(s), a
dataview.find with those keys.

I hope this helps?

Cor
 

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

Similar Threads


Back
Top