disable dates in the calandar

Hi

How can we disable (color grey) the days in the calandar of dateTimePickerAdv composant, outside the interval defined by the MinValue and the MaxValue.

Regards

Samuel

1 Reply

MJ Mano J Syncfusion Team July 27, 2009 06:22 AM UTC

Hi,

Please set the InactiveCaptionColor as same as the background in the dateTimePickerAdv popup event.


this.dateTimePickerAdv1.OnPopup += new EventHandler(dateTimePickerAdv1_OnPopup);

void dateTimePickerAdv1_OnPopup(object sender, EventArgs e)
{
dateTimePickerAdv1.Calendar.InactiveMonthColor = Color.White;
}


Thanks,
Mano

Loader.
Up arrow icon