Back to Devexpress

Month View

windowsforms-1760-controls-and-libraries-scheduler-views-month-view.md

latest6.0 KB
Original Source

Month View

  • Jun 04, 2025
  • 2 minutes to read

The Month View displays the least amount of detail. It targets long-term planning and overview scenarios. Days are displayed horizontally in week rows, weeks are arranged vertically.

The MonthView class implements the Month View. Use the SchedulerControl.MonthView property to access this view.

Activate Moth View

Set the SchedulerControl.ActiveViewType property to SchedulerViewType.Month to active the Month View.

The following code snippet creates a SchedulerControl and activates the Month View:

csharp
using System;
using System.Windows.Forms;
using DevExpress.XtraScheduler;
namespace DXSchedulerApp {
    public partial class Form1 : DevExpress.XtraEditors.XtraForm {
        SchedulerControl schedulerControl;
        public Form1() {
            InitializeComponent();
            schedulerControl = new SchedulerControl() {
                Dock = DockStyle.Fill,
                Start = DateTime.Now,
                ActiveViewType = SchedulerViewType.Month,
                DataStorage = schedulerDataStorage1
            };
            this.Controls.Add(schedulerControl);
        }
    }
}

Month View API

Properties and Methods

Member NameDescription
MonthView.AppearanceProvides access to the properties that control the appearance of the MonthView’s elements.
SchedulerViewBase.AppointmentDisplayOptionsProvides access to the MonthViewAppointmentDisplayOptions instance containing appointment’s display options for the MonthView.
MonthView.CompressWeekendGets or sets a value indicating if the weekend days (Saturday and Sunday) should be displayed as one day.
SchedulerControl.SelectedIntervalGets the time interval currently selected in the scheduler’s active view by an end-user.
MonthView.ShowWeekendGets or sets a value indicating if the scheduler should also show its data for the weekend days (Saturday and Sunday) in a Month View.
SchedulerViewBase.GetVisibleIntervalsReturns a copy of the visible time interval collection for the current view.
SchedulerViewBase.SetVisibleIntervalsFills the visible time interval collection with new items.
MonthView.WeekCountGets or sets the number of weeks that are simultaneously displayed within the Week View.

Events

Event NameDescription
SchedulerControl.CustomDrawWeekViewTopLeftCornerFires when the SchedulerViewBase.GroupType is set to the SchedulerGroupType.Date. Allows you to manually paint square area at the left corner of the view.
SchedulerControl.CustomDrawDayOfWeekHeaderAllows you to manually paint Day of Week Headers.
SchedulerControl.CustomDrawGroupSeparatorAllows you to paint a Group Separator in a custom manner.
SchedulerControl.CustomDrawNavigationButtonAllows you to paint Navigation Buttons in a custom manner.
SchedulerControl.CustomDrawResourceHeaderAllows you to paint Resource Headers in a custom manner.
SchedulerControl.CustomDrawTimeCellAllows you to paint the Time Cells in a custom manner.

Services

ServiceDescription
HeaderCaptionServiceAllows you to custom format the header captions.
HeaderToolTipServiceAllows you to specify custom tooltips for the day headers

See Also

Day View

Work Week View

Week View

Timeline View