Click here to Skip to main content
15,923,374 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Stored In List Using In LINQ

Actually output in this grid view
Name Item oty
shop lux 10
shop hum 2
shop past 20

Output
Name Item oty
shop lux 10
hum 2
past 20
Posted
Comments
R. Giskard Reventlov 10-Jun-11 10:07am    
What's the question???
Abhinav S 10-Jun-11 10:08am    
Tried anything?
Sergey Alexandrovich Kryukov 10-Jun-11 19:56pm    
No, not a question.
--SA
Sergey Alexandrovich Kryukov 10-Jun-11 19:57pm    
Nothing to do with ASP.NET -- can be used in any .NET code.
--SA

1 solution

You should use something like

C#
var q = from i in myList group i by i.Name;


If you give us more info we may be able to help more.

Hope this helps.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 10-Jun-11 19:57pm    
Yes, a 5.
--SA

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