I have requirement I want to group the 2 column based on condition Syntax: foreach( var item in data.groupby(x=> x.code =="002" ? Then group based on two columns e