OutputDT = (From r In DT.AsEnumerable
Group r By k=r("Name").toString.Trim Into grp=Group
From g In grp.DefaultIfEmpty
Select ra = {g("Name"),g("Col1")}.Concat(grp.First.ItemArray.Skip(2).ToArray).ToArray
Select OutputDT.Rows.Add(ra)).CopyToDataTable
Here, OutputDT is a datatable type variable which should be the Clone of DT the input Datatable, we could perform the clone using an Assign Activity as below :
Can you please help me to know how to implement this . I have kept this in a assign statement. And outpuDt is var but it is throwing exception copytodatatable not a member of datarow