Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxGanttControlSheetInitEditEvent Type

#Declaration

Delphi
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