Hi,
I have an Appointments collection, each appointment being a custom class which inherits from the Appointment class. What I need to do is to sort the appointments collection based on a customer propererty in my extended appointment class. I can then use the sorted collection to determine the position of the appointment in the UltraMonthSingle control.
Is this possible and if so could you provide some sample code to do so?
Thanks in advance
Paul McQ
your class needs to implement the IEnumerable Interface
Define your custom sorting and you will then be able to call:
Dim Objects As List(of CustomClass)Objects.Sort
CheersAaron
Thanks for your reply Aaron. Does this then mean that I need to create a custom collection class inheriting from AppointmentsCollection? If so do you know what parameters I would need to pass to MyBase.New I don't follow what it is asking for.
ThanksPaul