P
Paolo
I have a LINQ query which returns a sequence of rows all of which contains a
decimal field (T_Amount) e.g.
var trans =
from trans in dataSet.Transaction
where .... (filters)
....
select new
{
trans.T_Date,
p.P_Name,
c.C_Description,
s.S_Description,
pm.Value,
trans.T_Amount <<<< want to sum on this
};
I want to sum the values in T_Amount and show it in a label on a windows form.
I'd appreciate an example of how to construct such an aggregation, returning
the
total for sequence. I've done a fair amount of research but haven't found a
workable example.
Thanks
decimal field (T_Amount) e.g.
var trans =
from trans in dataSet.Transaction
where .... (filters)
....
select new
{
trans.T_Date,
p.P_Name,
c.C_Description,
s.S_Description,
pm.Value,
trans.T_Amount <<<< want to sum on this
};
I want to sum the values in T_Amount and show it in a label on a windows form.
I'd appreciate an example of how to construct such an aggregation, returning
the
total for sequence. I've done a fair amount of research but haven't found a
workable example.
Thanks