Back to Devexpress

MonthView.CompressWeekend Property

windowsforms-devexpress-dot-xtrascheduler-dot-monthview-f478661f.md

latest2.8 KB
Original Source

MonthView.CompressWeekend Property

Gets or sets a value indicating if the weekend days ( Saturday and Sunday ) should be displayed as one day.

Namespace : DevExpress.XtraScheduler

Assembly : DevExpress.XtraScheduler.v25.2.dll

NuGet Package : DevExpress.Win.Scheduler

Declaration

csharp
[DefaultValue(false)]
[XtraSerializableProperty]
public virtual bool CompressWeekend { get; set; }
vb
<DefaultValue(False)>
<XtraSerializableProperty>
Public Overridable Property CompressWeekend As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true to compress weekends; otherwise, false.

|

Remarks

Use this property to display the weekend days as one day when the Scheduler shows its data in a Month view. Note that only Saturday and Sunday can be displayed in a single day cell, irrespective of the current SchedulerOptionsViewBase.FirstDayOfWeek setting.

Note

After you have enabled the CompressWeekend option while the first day of the week is set to Sunday, the MonthView will display data starting a week earlier with the first day of the week set to Monday. This shift of weeks is applied to display the initial start date of the scheduler control in the new visible range of dates. If you disable CompressWeekend again, the first visible week will start from Sunday.

FirstDayOfWeek = Sunday; CompressWeekend = trueFirstDayOfWeek = Sunday; CompressWeekend = false

See Also

CompressWeekend

ShowWeekend

FirstDayOfWeek

MonthView Class

MonthView Members

DevExpress.XtraScheduler Namespace