HA
haneefm
Syncfusion Team
April 18, 2007 09:51 PM UTC
Hi Ken,
One way you can do this by hanlding the CurrentCellShowingDropDown event of the grid and change the TodayDate of the MonthCalendar control in a grid. Here is a code snippet.
private void gridDataBoundGrid1_CurrentCellShowingDropDown(object sender, GridCurrentCellShowingDropDownEventArgs e)
{
GridDataBoundGrid grid = sender as GridDataBoundGrid ;
GridDropDownMonthCalendarCellRenderer cr = grid.CurrentCell.Renderer as GridDropDownMonthCalendarCellRenderer;
if( cr != null )
{
foreach(Control c in cr.DropDownContainer.Controls )
{
if( c is MonthCalendar )
{
MonthCalendar calendar = c as MonthCalendar;
DateTime future = DateTime.Now.AddDays(1);
calendar.TodayDate = future;
break;
}
}
}
}
Best regards,
Haneef