This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Grokking Bitcoin and have Kalle Rosenbaum on-line!
See this thread for details.
Win a copy of Grokking Bitcoin this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

C# ListView Delete Items With Condition  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for posting in Java forum, I couldn't find C# forum over here.

I've created a ListView1 in C#

This ListView1 contains the columns: Student, DOB and Location.

There are different groups. Each student is grouped together with other students sharing the same age group.

The DOB field is in date format representing date of birth of each student.

Student DOB       Location

Group1:
AAA     10-05-2000  Mumbai
BBB     05-02-2000  Pune
CCC     01-01-2000  Delhi

Group2:
DDD     20-03-1999  Lucknow
EEE     15-06-1999  Chennai
FFF     18-09-1999  Ahmedabad


Can you please help me with the Code to automatically delete all items except the youngest student in each of the groups (by comparing DOB)?

Thanks a lot in advance.  
 
Why fit in when you were born to stand out? - Seuss. Tiny ad:
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!