Ordering a DataTable with Linq to DataSet using field substrings?

You can use CopyToDataTable : DataTable dt = query.CopyToTable().

You can use CopyToDataTable: DataTable dt = query.CopyToTable().

That did it, thanks guys! – user1014769 Oct 26 at 19:35.

Var query = dtReports.AsEnumerable() . OrderBy(x => x. Field("ReportNumber").

Substring(0, 4)) . ThenBy(x => x. Field("ReportNumber").

Substring(5)); var dt = query.CopyToDataTable().

It's basically the same query, with lambda syntax instead of query comprehension syntax... – Thomas Levesque Oct 26 at 15:24 Good point. See the recent edit. – Michael Minton Oct 26 at 15:35 your edit is what I said in my answer ;) – Thomas Levesque Oct 26 at 15:44.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions