views:

72

answers:

2

Hi everyone,

For reasons that don't make a lot of sense (Read: Not my decision) I need to keep a large number of rows, about ~90,000, in a DataTable and I do not have the option of using a database.

I need to be able to search the DataTable efficiently to find rows that match some basic criteria. For example, I might be looking at a row that has the value 2 in two specific columns.

What is the best way to do this?

Edit: Please take a look at http://chat.stackoverflow.com/transcript/message/62648#62648 for more details; after I work on this I will try and summarize the extra details from the chat here as well as provide my solution.

+5  A: 

You could easily use DataTable.Select()

Justin Niessner
Given the requirements, this is the only way to do this.
Chris Lively