Concatenate Gridview Data

Posted by zahid mahmood on Stack Overflow See other posts from Stack Overflow or by zahid mahmood
Published on 2013-07-02T10:40:54Z Indexed on 2013/07/02 11:05 UTC
Read the original article Hit count: 370

Filed under:
|

I have a gridview with following Data

CustomerName  item      qty
tom           sugar      1 kg
Peter         Rice       2 Kg
Jhone         Sugar      .5 kg
tom           Rice       5 Kg
Peter         Tea        .5 Kg
tom           Tea         1 kg

now I want to display data with the following format:

tom   sugar 1kg, Rice 5 kg, Tea 1 kg
Peter Rice  1kg, Tea  .5 kg
Jhone Sugar .5kg

how to achieve this

© Stack Overflow or respective owner

Related posts about c#

Related posts about vb.net