Monday, March 26, 2012

simple calendar control problem

hello i have got some code on page_load to allow me to highlight the current day cell in a different colour:

Calendar1.SelectedDate = System.DateTime.Now;

however this means that if a user clicks the current date cell to select it nothing is happening as it is seen to be already selected.

Is there a way I can show the current date in a different style yet still have it clickable?You can use theTodayDayStyle property, either in code like this:


myCalendar.TodayDayStyle...

or you can do it within the properties window.

It is just a style so it is not selected.

hope this helps,

sivilian
thanks that worked for me!

0 comments:

Post a Comment