SelectedDate problem with Calendar!?

  • Thread starter Thread starter Leon_Amirreza
  • Start date Start date
L

Leon_Amirreza

When I Set the Calendar.SelectedDate Property programatically that Day's
style doesnt change according to the styles set in Calendar property so the
user wont see the change in SelectedDate

BUT
when the user changes the SelectedDate by mouse clicks that Day's style
changes and the user can distinguish the SelectedDate from others in the
Calendar
 
Helo Leon
When I Set the Calendar.SelectedDate Property programatically that Day's
style doesnt change according to the styles set in Calendar property so
the user wont see the change in SelectedDate

BUT
when the user changes the SelectedDate by mouse clicks that Day's style
changes and the user can distinguish the SelectedDate from others in the
Calendar
Let me guess (i have no other choice):
You set the date like that: this.Calendar1.SelectedDate = DateTime.Now

This dont work, the reason is simple.
Have a look to my blog post refering to this:
-
http://www.aspnetzone.de/blogs/pete...tuelles-datum-im-calendar-control-setzen.aspx
 
Back
Top