Let say I have a column an excel file
with a column below:
Price
100
200
300
400
600
how can I compute it without looping using for each datatable?
Thanks!
Let say I have a column an excel file
with a column below:
Price
100
200
300
400
600
how can I compute it without looping using for each datatable?
Thanks!
Try this
Sum=DT.AsEnumerable.Sum(Function(x) Cint(x(“Price”).ToString))
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.