Register / Login
This week's book giveaway is in the
We're giving away four copies of
and have Kalle Rosenbaum on-line!
Win a copy of
this week in the
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
C# and .NET
C# ListView Delete Items With Condition
posted 2 months ago
Sorry for posting in
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
AAA 10-05-2000 Mumbai
BBB 05-02-2000 Pune
CCC 01-01-2000 Delhi
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
Boost this thread!
How to split a string by the whitespace but ignoring '\n'?
Regex split text around quotes