In the above data table I have to add UIST values 37+43 and want to convert into one row … Similarly for BOT store values 12 +21 should get added and want to convert into one row like below screenshot
(From d In DtBuild.AsEnumerable
Group d By k=d("Name").toString.Trim Into grp = Group
Let nj = grp.Sum(Function (x) CDbl(x("Value").toString.Trim))
Let ra = New Object(){k,grp.First()(1),nj}
Select r = DtOutput.Rows.Add(ra)).CopyToDataTable