Last post Mar 06, 2013 09:05 PM by Angie xu - MSFT
Mar 03, 2013 05:24 PM|exe.bat|LINK
I created a webgrid with all the data I need from the database.
I populated it using
var data1 = db.Query(...)
Now I need to sum couple of fields in the footer.
@data1.Sum(p => p.Price)
But I get
Cannot use a lambda expression as an argument to a dynamically dispatched operation
Is there a way to get sum without reading data from the database once more ? (it does not need to be part of the webgrid at all)
Mar 03, 2013 05:52 PM|exe.bat|LINK
Found the answer here
Mar 06, 2013 09:05 PM|Angie xu - MSFT|LINK
Thanks for your kind feedback, and I come here to confirm and close this issue. If you have anything urgent, please feedback by creating another issue.