Me Again!!
I don't know if i'm doing something wrong, or if this is a bug.
I am trying to make my scheduler only show a given appointment.
I wanted to display the hour before and after the appointment. To do so I am using this code:
private void showAppointment(DateTime dt1) |
{ |
rsAppointments.ActiveView.StartDate = Convert.ToDateTime(dt1.ToShortDateString()); |
((SchedulerDayView)rsAppointments.ActiveView).RulerStartScale = dt1.Hour - 1; |
((SchedulerDayView)rsAppointments.ActiveView).RulerEndScale = dt1.AddMinutes(Convert.ToDouble(appointDuration)).Hour + 1; |
} |
It works fine the first time its called, however after its been called a few times, it starts showing more and more time and will show the 3-6 hours before the appointment.
Any suggestions?
Thanks!