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
Please note that the sort order of Appointments is not really customizable. Appointments must be sorted in a very particular way, i.e., in chronological order, to ensure proper operation of the schedule controls and components. I highly recommend not messing with the sort order as I could not even begin to speculate about the resulting behavior.