public EditingControlShowingDemo()
{
gcCalendarGrid.Template = this.CreateTemplate();
gcCalendarGrid.Dock = DockStyle.Fill;
gcCalendarGrid.EditMode = CalendarEditMode.EditOnEnter;
gcCalendarGrid.CurrentCellPosition = new CalendarCellPosition(DateTime.Today, 1, 0);
gcCalendarGrid.EditingControlShowing += gcCalendarGrid_EditingControlShowing;
this.Text = "EditingControlShowing Demo";
this.Controls.Add(gcCalendarGrid);
}
Public Sub New()
gcCalendarGrid.Template = Me.CreateTemplate()
gcCalendarGrid.Dock = DockStyle.Fill
gcCalendarGrid.EditMode = CalendarEditMode.EditOnEnter
gcCalendarGrid.CurrentCellPosition = New CalendarCellPosition(DateTime.Today, 1, 0)
AddHandler gcCalendarGrid.EditingControlShowing, AddressOf gcCalendarGrid_EditingControlShowing
Me.Text = "EditingControlShowing Demo"
Me.Controls.Add(gcCalendarGrid)
End Sub