Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
75
How can I sort the AppointmentsCollection
posted

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

Parents
No Data
Reply
  • 2094
    Offline posted

     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

     

    Cheers
    Aaron

Children