Skip to main content

TdxGanttControlSheetInitEditEvent Type

Declaration

TdxGanttControlSheetInitEditEvent = procedure(Sender: TObject; AColumn: TdxGanttControlSheetColumn; AEdit: TcxCustomEdit) of object;

Parameters

Name Type
Sender TObject
AColumn TdxGanttControlSheetColumn
AEdit TcxCustomEdit

Remarks

This event occurs when a sheet cell’s in-place editor is about to be activated so you can implement a custom response to this action.

The table below lists the event’s parameters:

Parameter Description
Sender Sheet options that raised the event. You can cast the Sender parameter to the TdxGanttControlSheetOptions class to access type-specific members.
AColumn The sheet column.
AEdit The activated in-place editor.

The following code example shows how to handle the OnInitEdit event to change the editor’s drop-down calendar type:

procedure MyForm.dxGanttControl1ViewChartOptionsSheetInitEdit(Sender: TObject; AColumn: TdxGanttControlSheetColumn; AEdit: TcxCustomEdit);
begin
  if AEdit is TcxCustomDateEdit then
    TcxCustomDateEdit(AEdit).Properties.Kind := ckDateTime;
end;
See Also