AD
Administrator
Syncfusion Team
September 5, 2006 09:10 AM UTC
Hi Jay,
You can access the GridDropDownMonthCalendarCellRenderer and can subscribe the MonthCalendar.DateChanged event to detect the date changes in the MonthCalendar cell. Below is a code snippet
GridDropDownMonthCalendarCellRenderer cr = this.grid.CellRenderers["MonthCalendar"] as GridDropDownMonthCalendarCellRenderer;
foreach(Control c in cr.DropDownContainer.Controls )
{
if( c is MonthCalendar )
{
MonthCalendar mc = c as MonthCalendar ;
mc.DateChanged +=new DateRangeEventHandler(mc_DateChanged);
break;
}
}
private void mc_DateChanged(object sender, DateRangeEventArgs e)
{
Console.WriteLine("DateChanged fired");
}
Thanks,
Haneef