Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Head First Go this week in the Go forum!

Yof Raja

Greenhorn
+ Follow
since Mar 13, 2019
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Yof Raja

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.  
1 week ago