smcculloch posted on June 05, 2006 05:30

Another aspect of Simple Calendar that I have been implementing is the layout of the calendar.
Currently the ASP.NET calendar control doesn't support databinding similar to other controls such as the Repeater, DataList, etc. This makes it difficult to change the layout of the calendar, and you are restricted to really inserting labels, etc through code in the ItemDataBound event.
Fortunately, there are a number of code samples out there to show how to provide a templating system for the calendar. So with the Simple Calendar source, you will see a control that allows you to bind data to a calendar with templates covering all aspects of the layout such as WeekHeader, WeekFooter, DayHeader, DayFooter, Event, etc.