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
4133
Adding Appointments By Changing The Underlying Data Doesn't Update CalendarInfo
posted

I am binding a Timeline control to a CalendarInfo object.  The DataSource for the CalendarInfo object is set to a dataview.  I fill my dataset and the appointments for the items already in the dataset appear properly.  However, I then add rows to my underlying dataset in code and the appointments never appear.  I have tried calling the RefreshData method on the CalendarInfo object and that doesn't work.  The rowstate of the new rows are Added, but even after calling the AcceptChanges on the datatable, they still don't appear.  I have also tried removing the datasource from the CalendarInfo object and resetting it to a new instance of a dataview and that hasn't worked either.

Any ideas on how to get these appointments to appear?  My code to bind the CalendarInfo object is below.  Again, there only seems to be a problem with Added records.   My rowstatefilter on the dataview is Current, so the Added records should appear.

Me.CalendarInfo1.DataBindingsForAppointments.DataSource = Me.dvScheduleDetail            

Me.CalendarInfo1.DataBindingsForAppointments.BindingContextControl = Me            

Me.CalendarInfo1.DataBindingsForAppointments.AllPropertiesMember = "All_Properties"            

Me.CalendarInfo1.DataBindingsForAppointments.DataKeyMember = "Schedule_Detail_ID"            

Me.CalendarInfo1.DataBindingsForAppointments.DescriptionMember = "Step_Description"            

Me.CalendarInfo1.DataBindingsForAppointments.EndDateTimeMember = "Scheduled_End_Date"             Me.CalendarInfo1.DataBindingsForAppointments.OriginalStartDateTimeMember = "Original_Scheduled_Start_Date"             Me.CalendarInfo1.DataBindingsForAppointments.OwnerKeyMember = String.Empty            

Me.CalendarInfo1.DataBindingsForAppointments.StartDateTimeMember = "Scheduled_Start_Date"            

Me.CalendarInfo1.DataBindingsForAppointments.SubjectMember = "Subject"