Calendar::FirstDayOfWeek Property
.NET Framework (current version)
Gets or sets the day of the week to display in the first day column of the Calendar control.
Assembly: System.Web (in System.Web.dll)
public: property FirstDayOfWeek FirstDayOfWeek { FirstDayOfWeek get(); void set(FirstDayOfWeek value); }
Property Value
Type: System.Web.UI.WebControls::FirstDayOfWeekOne 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.
.NET Framework
Available since 1.1
Available since 1.1
Show: