I have a need to refresh calendar information every few minutes (or at least check for changes). The problem is that I can't find any way to refresh them. I have tried:
calInfo.DataBindingsForAppointments.RefreshData()
followed by a refresh on each of the view and nothing happens. I updated the datasets, and indeed they are updating. It just isn't making it to the calendar.
I set up the appointments part with this code:
' Set up data binding for Appointments
Dim appointmentsDataBinding As AppointmentsDataBinding = calInfo.DataBindingsForAppointments
appointmentsDataBinding.AllPropertiesMember = "AllProperties"
appointmentsDataBinding.StartDateTimeMember = "StartDateTime"
appointmentsDataBinding.EndDateTimeMember = "EndDateTime"
appointmentsDataBinding.SubjectMember ="Subject"
appointmentsDataBinding.AllDayEventMember ="AllDayEvent"
appointmentsDataBinding.OwnerKeyMember ="OwnerKey"
appointmentsDataBinding.SetDataBinding(dsAppts,"ScheduleAppointments")
appointmentsDataBinding.BindingContextControl =Me
appointmentsDataBinding.BindingContext =Me.BindingContext
I reload the dataset in a seperate function:
Private Sub LoadCalendar()
Dim SQL As String
dsAppts = Nothing
SQL ="SELECT * FROM ScheduleAppointments"
Main.db.BuildTable(SQL, dtAppts,"ScheduleAppointments", dsAppts)' Routine to build a data table and data set
calMonth.Refresh()
calDay.Refresh()
calWeek.Refresh()
End Sub
What am I missing? The data table and the dataset do update to the latest data.
Hi,
Have you been able to resolve your issue ? Please send me feedback. If you have any questions, do not hesitate to ask me
Regards