SelectedDate problem with Calendar!?

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
 
P

Peter Bucher [MVP]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top