AD
Administrator
Syncfusion Team
November 9, 2006 11:55 AM UTC
Hi Michael,
The Grid's MonthCalendar celltype implements the System.Windows.MonthCalender control in DropDownContainer of the cell. It doesn't implement the Syncfusion.Windows.Tools.MonthCalendarAdv control in a DropDownContainer of the cell. You can use the GridDropDownMonthCalendarCellRenderer to acess the MonthCalendar control in a cell. Here is a code snippet
GridDropDownMonthCalendarCellRenderer cr = this.gridGroupingControl1.TableControl.CellRenderers["MonthCalendar"] as GridDropDownMonthCalendarCellRenderer;
foreach(Control c in cr.DropDownContainer.Controls)
{
if( c is MonthCalendarAdv )
{
MonthCalendar cCalendar = c as MonthCalendar;
//you can use the any event from here....
//cCalendar.DateChanged....
}
}
If you want to implement the MonthCalendarAdv control in a cell, you need to create the custom celltypes. Please try the attached sample which implements the MonthCalendarAdv in a cell and let me know if you are looking something different.
Here is a sample.
http://www.syncfusion.com/Support/user/uploads/DateTimeCell_3cebccd9.zip
Best Regards,
Haneef