Datatable manipulation with blank rows using LINQ

Hi Team,

Input is my datatable below,

My output:


The last column will be of list type or any feasible type which can be used in for each. using LINQ.
As we can see here, for particular order type sales organization, pi number, there can be multiple cartoon numbers. I need that in the same row.

@yash.choursia

Can you please explain what is that data? and how you want to append

cheers

As we can see here, for particular order type sales organisation, pi number, there can be multiple cartoon numbers. I need that in the same row.

its more a fill-up value case easier to handle within a for-each row instead with a LINQ

Can you help me with the logic for for each?

@Yoichi Please help.

with this building block:

we can do within the
then block:

  • adding the Cartoon number to a list - ListGroupCartoons
  • setting “blank” value
    Else Block:
  • memorizing the block start index
  • setting the ListGroupCartoons e.g. by: String.Join(“,”, ListGroupCartoons)