Last active
December 16, 2015 13:09
-
-
Save icoxfog417/5439742 to your computer and use it in GitHub Desktop.
LINQ from DataTable and Group by
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From row In listData.AsEnumerable | |
Group row By _ | |
NAME = row.Field(Of String)("NAME") _ | |
Into g = Group | |
Let SCORE = g.Sum(Function(row) row.Field(Of Integer)("SCORE")) | |
Select NAME,SCORE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment