Share via


ShowDayHeader Property

Sets or returns a value that determines whether the control displays the names of the days of the week in the calendar header. Has the same functionality as the Web Forms Calendar.ShowDayHeader property. The default is true.

public bool ShowDayHeader {
   get,
   set
}

Example

The following example demonstrates how to use the ShowDayHeader property to show the headers for the days.

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

' Use the following code to shut off the day header.
calendar1.ShowDayHeader = True
calendar1.VisibleDate = DateTime.Parse("6/5/2001")

End Sub

[C#]
protected void Page_Load(Object sender, EventArgs e)
{
    // Use the following code to shut off the day header.
    calendar1.ShowDayHeader = true;
    calendar1.VisibleDate = DateTime.Parse("6/5/2001");
}

See Also

Applies to: Calendar Class