Read How to use Linq to group every N number of rows already
But i would like to know further
Suppose a list contains 22 ITEM01 with quantity 10 for each, and 2 ITEM02 with quantity 50 for each
# |ITEM |QUANTITY
==================
1 |ITEM01| 10
2 |ITEM01| 10
3 |ITEM01| 10
. . .
. . .
22|ITEM01| 10
23|ITEM02| 50
24|ITEM02| 50
How to get the result like : (If count > 10, go to next row)
ITEM |QUANTITY
=================
ITEM01 | 100
ITEM01 | 100
ITEM01 | 10
ITEM01 | 10
ITEM01 | 10
ITEM02 | 50
ITEM02 | 50
Thanks for your help!