(From p In DtMaster.AsEnumerable() Group By x= New With { Key.a =p.Item("TransactionID")} Into Grp = Group Select DT.Clone.LoadDataRow (New Object() {grp(0)(0),grp.Sum(Function ( r ) if(String.IsNullOrEmpty(r(“Amount”).ToString) or String.IsNullOrWhiteSpace(r(“Amount”).ToString),0,CDbl(r(“Amount”).ToString)))},False)).CopyToDataTable
I’d appreciate it if you marked the answer as solution so that others facing similar issues may benefit from it also so that we may close this thread.