Click here to Skip to main content
15,901,853 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
I am working on .Net C# device application where I have a list view where I am displaying data.
My intention is not to display duplicate data on listview.


Thanks & Regards
Indrajit dasgupta
Posted
Comments
Shanu2rick 13-Mar-13 3:02am    
what have you tried?

1 solution

You can use LINQ DISTINCT[^] to filter out data before loading it into the list view.

Here is an example - http://geekswithblogs.net/WinAZ/archive/2010/04/07/using-linq-distinct-with-an-example-on-asp.net-mvc-selectlistitem.aspx[^].
 
Share this answer
 

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