I want to select some data from a datatable and copy it to another data table. I found the answer in one question - How to query a DataTable in memory to populate another data table
DataTable table = GetDataTableResults(); DataTable results = table.Select("SomeIntColumn > 0").CopyToDataTable();
This code does not work and causes an error -
'System.Array' does not contain a definition for 'CopyToDataTable' and no extension method 'CopyToDataTable' accepting a first argument of type 'System.Array' could be found (are you missing a using directive or an assembly reference?)
I am using visual studio 2008 and .net 3.5.
source share