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 using device application where I am reading RFID Tag through my Device and I am checking that with my Data base. I am using Data set then I put the data in my List View. So every time it read the same data and put it on List View. Now my question is it should show only distinct data in my List View. How can I make it possible? Is there any process that List View show only the Distinct data?


Thanks & Regards
Indrajit Dasgupta
Posted
Comments
CHill60 25-Mar-13 6:18am    
Are you populating the Dataset / ListView from the database? If so then use Distinct on the database query.
If you're using Linq there is a Distinct feature on that.
If you are always adding to the Dataset and then using that to add to the ListView then Items.Clear the ListView before refreshing the data
If none of the above try using the Improve question link to add more detail to your question

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