Sum of DataTable columns total using Lambda Expression in Entity FrameWork in ASP.Net

Last Reply one year ago By dharmendr

Posted one year ago
 decimal total = dt.AsEnumerable().Sum(row => row.Field<decimal>("TotalAmount"));

when i try to add the total amount from grid view row then i'm faicing above error sir
You are viewing reply posted by: dharmendr one year ago.
I agree, here is the link: