Group multiple rows into single row using linq

Hi Team,

How to group the multiple rows into single row using Linq.

Input:
User Hobby

Bob Football
Bob Golf
Bob Tennis
Sue Sleeping
Sue Drinking

Output:
User Hobby

Bob Football, Golf, Tennis
Sue Sleeping, Drinking

@mentavenkatesh

Welcome to community

You can refer below post

Mark as solution if this helps

Thanks

Hi,

Thanks for your response. Actually i have 20 columns in the data table. please suggest me how to do.

@mentavenkatesh Can you provide us a Sample data of the Excel having 20 Columns, also appreciated if you could show us the Expected Output based on the Input File.