score:2

Accepted answer

you can use copytodatatable:

datatable dt = query.copytotable()

score:0

take a look at this, http://msdn.microsoft.com/en-us/library/bb386921.aspx hope that is what you are looking for?

score:3

var query = dtreports.asenumerable()
              .orderby(x => x.field<string>("reportnumber").substring(0, 4))
              .thenby(x => x.field<string>("reportnumber").substring(5));
var dt = query.copytodatatable<datarow>();

Related Query