none
Pivoting using LINQ RRS feed

  • Question

  • I have a datatable that has this data:

    ABC_DEF 1234-01
    ABC_DEF 1234-02
    ABC_DEF 1234-03
    GHI_JKL   1234-01
    GHI_JKL   5678-01
    GHI_JKL   5678-02

    In my gridview, I want the data to appear as:

    COL_1     COL2
    ABC_DEF  1234-01, 1234-02, 1234-03
    GHI_JKL    1234-01, 5678-01, 5678-02

    How would I do that using LINQ?

    Thanks!
    Monday, March 2, 2009 3:52 PM

Answers