I have a databound calendar control that loads the date from the database.
The problem I have is that it defaults to todays date when the form is loaded, although when you scroll to the loaded date you see that the correct date is in fact selected. How can I force it to show the loaded date from the database from the start?
Thanks
I managed to find a work around. I set the Calendar control’s SelectedDate property at design time, and then in the Prerender event of the control, I use the sender’s SelectedDate property to set the VisibleDate property of the Control. It then shows both the correct month and correct selected date. 🙂