LINQ for grouping, sum and copy to new DT - skip not working

have a look here:

And

you had seen System.Linq.Enumerable… in the output because of:

  • skip wil return a collection the itemArray items which are grabbed after skipping the first 33 items
  • with Append a single item / element will be added to the ra (row array)
  • the caused toString() from the complex type will be used as column value

So we changed to:

.Concat(grp.First().ItemArray.Skip(33)

as the intention is about to combine multiple elements (returned from skip) with multiple elements defined by ra1/ra2…

1 Like