I have big DataTable I want to get subset of this DataTable represented as DataTable either.
Briefly saying how do I select particular columns in DataTable.
I was trying something like this but it doesn't work...
DataTable dTable = new DataTable();
...
...
...
DataTable dt = from field in dTable
where field.Field<string>("Manager")
where field.Field<string>("Phone")
select field;
Maybe my code is wrong, how do I get "managers" and "Phone" columns from one DataTable to another without looping thought it?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…