I'm using a monthView control and I'm databinding a dataset to the calendarInfo control. Basically my event originally shows up on today even though the date is clearly set to 3 days previous. If I click anywhere on the monthView the appointment suddenly shows up on the proper day as well as still showing as today.
In my day view the problem appointment shows up as starting at 12am today so wrong date AND wrong time. I also have a multiMonthView and it only shows the proper day as bold, not today.
I read a similar problem on the archive blog but there was no solution given other than the suggestion that it was a bug. If it / was a bug has it been resolved yet? We are using 7.2.
Here is the code setting up my binding.
this.calendarInfo.DataBindingsForAppointments.SetDataBinding(calendarDS, "Appointments");
this.calendarInfo.DataBindingsForAppointments.BindingContextControl = this; // Basic Appointment properties this.calendarInfo.DataBindingsForAppointments.SubjectMember = "Subject"; this.calendarInfo.DataBindingsForAppointments.StartDateTimeMember = "StartDateTime"; this.calendarInfo.DataBindingsForAppointments.EndDateTimeMember = "EndDateTime"; this.calendarInfo.DataBindingsForAppointments.AllDayEventMember = "AllDayEvent";
Fixed my own problem, though I still think it is a bug.
You have to set the databinding AFTER you set all the column properties, which makes sense.