Calendar::FirstDayOfWeek Property

 

Gets or sets the day of the week to display in the first day column of the Calendar control.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
property FirstDayOfWeek FirstDayOfWeek {
	FirstDayOfWeek get();
	void set(FirstDayOfWeek value);
}

Property Value

Type: System.Web.UI.WebControls::FirstDayOfWeek

One of the FirstDayOfWeek values. The default is Default, which indicates that the day specified in the system setting is used.

Exception Condition
ArgumentOutOfRangeException

The date specified is not one of the FirstDayOfWeek values.

Use the FirstDayOfWeek property to specify the day of the week to display in the first day column of the Calendar control. This property is set with one of the FirstDayOfWeek enumeration values. You can specify any day of the week or FirstDayOfWeek.Default, which indicates that the date is determined by the system settings.

The following code example demonstrates how to use the FirstDayOfWeek property to set the first day column to Monday.

No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: