Version

Change the Style of Days Outside of the Month

WebCalendarView™ has the ability to Style days of months that are displayed, but aren’t part of that actual month. Setting the OtherMonthDayStyle helps differentiate the days of the other month from the actual month’s days more clearly.

The following code snippet sets the OtherMonthDayStyle BackColor to Purple.

WebSchedule How to Change Other Months Days Style 01.png

In Visual Basic:

Private Sub Page_Load(ByVal sender As System.Object, ByVal e _
  As System.EventArgs) Handles MyBase.Load
        Me.WebCalendarView1.OtherMonthDayStyle.BackColor = Color.Purple
End Sub

In C#:

private void Page_Load(object sender, System.EventArgs e)
{
        this.WebCalendarView1.OtherMonthDayStyle.BackColor = Color.Purple;
}