Skip to main content

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

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