private void Form1_Load(object sender, EventArgs e)
{
CalendarGcComboBoxCellType gcComboBoxCell1 = new CalendarGcComboBoxCellType();
gcComboBoxCell1.DropDown.Size = new Size(120, 80);
//Set the DataSource.
gcComboBoxCell1.DataSource = CreateDateTable1();
CalendarTemplate template1 = CalendarTemplate.CreateDefaultTemplate();
template1.Content[1, 0].CellType = gcComboBoxCell1;
template1.Content[2, 0].CellType = gcComboBoxCell1.Clone();
gcCalendarGrid1.Template = template1;
}
Private Sub Form1_Load(sender As Object, e As EventArgs)
Dim gcComboBoxCell1 As New CalendarGcComboBoxCellType()
gcComboBoxCell1.DropDown.Size = New Size(120, 80)
'Set the DataSource.
gcComboBoxCell1.DataSource = CreateDateTable1()
Dim template1 As CalendarTemplate = CalendarTemplate.CreateDefaultTemplate()
template1.Content(1, 0).CellType = gcComboBoxCell1
template1.Content(2, 0).CellType = gcComboBoxCell1.Clone()
gcCalendarGrid1.Template = template1
End Sub