Skip to main content

TcxGridTableViewDetachedEditFormEvent Type

The OnDetachedEditFormInitialize event’s procedural type.

Declaration

TcxGridTableViewDetachedEditFormEvent = procedure(Sender: TcxGridTableView; AForm: TForm) of object;

Parameters

Name Type
Sender TcxGridTableView
AForm TForm

Remarks

This event occurs when the modal Edit Form is about to be displayed. Use the Sender parameter to identify the table view that raised the event and customize AForm settings.

procedure MyForm.cxGrid1DBTableView1DetachedEditFormInitialize(
  Sender: TcxGridTableView; AForm: TForm);
begin
  AForm.BorderStyle := bsDialog;
  AForm.Height := 220;
  AForm.Width := 320;
end;

Note

Do not cast the AForm parameter to the TcxGridDetachedEditForm or TcxGridCustomDetachedEditForm class since they are intended for internal use.

See Also