linq query to sum of one column in a collection (data table) which has multiple columns id amount status 1 1234 c 2 4321 e 3 100 s 4 900 q 5 1000 m i want a output result as string which sum of (1234+4321+100+900+1000)= 75555
int sum = yourDataTable.AsEnumerable().Sum(r => r.Field<int>("amount"));
int
string
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)