how do I sum column in datatable? I can do it using for each loop but is there a faster way/?
use vbnet like this
dt.AsEnumerable().Sum(Function(row) row.Field(Of Integer)(“Column”))
1 Like
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.