BinarySearch on DataView

G

Guest

I'm looking for a way to do a BinarySearch on a DataView. The method is in Array and ArrayList but not in the DataTable, DataView classes. I know there is a Find method but that only returns a value if there is a perfect match and I want to be able to find the row that's closest.

I want to do this because I have a large data list and I want to be able to jump quickly to a particular row, ie get to the B's when I type 'B'. I would use an ArrayList, but the DataView has the filter command. If all else fails, I may end up using ArrayList and implement Filter on ArrayList

Any suggestions?

Thanks in advance

Jeff
 
M

Mohamoss

hi
why don't you use both save your data in arrary list and bind your dataview
to it .
Mohamed Mahfouz
MEA Developer Support Center
ITworx on behalf of Microsoft EMEA GTSC
 

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