Skip to main content

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.v22.2.dll

NuGet Package: DevExpress.Win.Scheduler


public virtual bool CompressWeekend { get; set; }

Property Value

Type Default Description
Boolean false

true to compress weekends; otherwise, false.


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.



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 = true FirstDayOfWeek = Sunday; CompressWeekend = false
MonthView_CompressWeekend_FirstSunday DXScheduler_MonthView_CompressWeekend_FirstSunday1
See Also