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

CalendarControlBase.DisabledDateProvider Property

Allows you to assign an ICalendarDisabledDateProvider object that can disable certain dates to prevent them from being selected by an end-user.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(null)]
[DXCategory("Behavior")]
public ICalendarDisabledDateProvider DisabledDateProvider { get; set; }

#Property Value

Type Default Description
DevExpress.XtraEditors.Controls.ICalendarDisabledDateProvider null

An object that can disable certain dates to prevent them from being selected by an end-user.

#Remarks

You can disable certain dates in the Calendar by using one of the following approaches:

  • Handle the CalendarControlBase.DisableCalendarDate event
  • Implement an ICalendarDisabledDateProvider object, which marks specific dates as “disabled”, and assign this object to the DisabledDateProvider property.

Disabled dates are painted with a strikethrough. You can provide custom appearance settings used to paint disabled dates with the CalendarControlBase.CalendarAppearance property.

See Also