J
John
What is the most efficient way to perform a filter on a
DataTable and then have a new DataTable with only the
rows matching the filter?
The only thing I can think of is the following:
1. dataTableNew = dataTableOld.Clone();
2. rows = dataTableOld.Select("some filter");
3. loop through rows and add to dataTableNew
A few step left out, but you get the idea.
Would love to hear your thoughts,
John
DataTable and then have a new DataTable with only the
rows matching the filter?
The only thing I can think of is the following:
1. dataTableNew = dataTableOld.Clone();
2. rows = dataTableOld.Select("some filter");
3. loop through rows and add to dataTableNew
A few step left out, but you get the idea.
Would love to hear your thoughts,
John