find Duplicate record in listView using C#
-
hai all, How to find a duplicate record in list view...using C# for smartdevices... Am reading a no's of records from outside... If the record's is already present in my listview, just increment a count for particular record’s don’t want add it again. (avoid the duplication but keep on counting) How should I proceed…
Best Regard's Mathy's
-
hai all, How to find a duplicate record in list view...using C# for smartdevices... Am reading a no's of records from outside... If the record's is already present in my listview, just increment a count for particular record’s don’t want add it again. (avoid the duplication but keep on counting) How should I proceed…
Best Regard's Mathy's
-
put a loop and over listview items. then you can start counting duplicate items right ? is that complex ? :)
If u can Dream... U can do it
hai jk The list of items is more, if i using a loop its eating a time... and also am read the data continuously, it may be the same item… am using 3 columns 1. No’s of items 2. items id 3. repeated count of same items… so each items have its own count… if detected the same item just increment the count. plz tell me any other way..
Best Regard's Mathy's
-
hai jk The list of items is more, if i using a loop its eating a time... and also am read the data continuously, it may be the same item… am using 3 columns 1. No’s of items 2. items id 3. repeated count of same items… so each items have its own count… if detected the same item just increment the count. plz tell me any other way..
Best Regard's Mathy's
ok , in that case say you have an array of items , ITEM[] MyItems, for each item in the list you can count the frequency , like MyItems[itemid].freq++; in the next loop u can check for items whose freq is > 1 then,thats it You canfind the duplicate record in O(n) time complexity.
If u can Dream... U can do it