Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

WeekDaysCheckEdit.WeekDaysChanged Event

Fires when the control’s weekday checkbox changes its state.

Namespace: DevExpress.XtraScheduler.UI

Assembly: DevExpress.XtraScheduler.v24.2.dll

NuGet Package: DevExpress.Win.Scheduler

#Declaration

public event EventHandler WeekDaysChanged

#Event Data

The WeekDaysChanged event's data class is EventArgs.

#Remarks

The WeekDaysChanged event occurs after the user has checked or unchecked the check box in the WeekDaysCheckEdit control. Handle this event to update the days in a workweek (WorkDays).

WeekDaysCheckEdit

#Example

This example shows how to update the days in a workweek based on days selected in the WeekDaysCheckEdit control.

using DevExpress.XtraScheduler;

private void weekDaysCheckEdit1_WeekDaysChanged(object sender, EventArgs e) {
    WeekDays weekDays = this.weekDaysCheckEdit1.WeekDays;
    WorkDaysCollection workDays = this.schedulerControl.WorkDays;
    workDays.BeginUpdate();
    workDays.Clear();
    if(!weekDays.Equals((WeekDays)0))
        workDays.Add(new WeekDaysWorkDay(weekDays));
    workDays.EndUpdate();
}
See Also