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.v20.1.dll

Declaration

[DefaultValue(null)]
[DXCategory("Behavior")]
public ICalendarDisabledDateProvider DisabledDateProvider { get; set; }
<DefaultValue(Nothing)>
<DXCategory("Behavior")>
Public Property DisabledDateProvider As ICalendarDisabledDateProvider

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