I have a datatable that looks like the following
cname tname text allowgroupping
A M good Yes
A M bad Yes
A M ugly Yes
B N sick No
B N lovely No
C R pathatic Yes
I want to group the datatable by the first column cname
so the result will look like
cname tname text allowgroupping
A M good,bad,ugly Yes
B N sick,lovely No
C R pathatic Yes
I have done it by looping each column and doing a lot of checks, but how can I do it using LINQ and save the result to a datatable?