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
450
Appointment Backcolor Update
posted

Hey Guys, me yet again.

I have my appointments storred in a table called "ReservationTable".  I fill a datatable with all these entries and then bind the UltraCaladerInfo to my UltraDayView. This all works perfect.

My new problem is that i have a few extra  fields in the table as well, one of which is status (relates to the status of the reservation).

By default when a reservation is added it goes in with status of 0 (unconfirmed) and a appointment backcolor of red. When i mark the appointment as confirmed i change the color to green and update the status to 1.  this all works fine as well.

My  problem is that a change to the status can be made via another program as well, which will update the status of this appointment to 1, but i do not know how to update the backcolor.  I know it is stored in "AllProperties" but how do i access the backcolor property

 Thanks for any help 

Cheers
  • 69832
    Offline posted

    You should be able to handle the ListChanged event of the binding through which you access the appointment data, and set the Appointment.Appearance.BackColor property when a change is made to the status field.