Click here to Skip to main content
15,908,254 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have data:

Name Score State Date

A 10 B 01/01/2013

A 20 B 08/30/2013

B 20 AL 08/30/2013

C 20 UH 08/30/2013

I want display :

Name Score State Date

A 20 B 08/30/2013

B 20 AL 08/30/2013

C 20 UH 08/30/2013

It will order by date, after that it gets the first group by Name.

How can i do with LINQ ???
Posted

1 solution

This article will give you a better understanding of How to Use LINQ GroupBy[^]
 
Share this answer
 
Comments
baotdinh 14-Aug-13 21:38pm    
i am new with linq. Can you help me about code ???
Akbar Ali Hussain 15-Aug-13 22:29pm    
I hope you know the concept of GroupBy and its SQL query. If no, then it is very difficult to implement in LINQ. If yes, then provide me the sql query and I will give you LINQ query for the same.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900