Back to Devexpress

TcxGridTableViewDetachedEditFormEvent Type

vcl-cxgridtableview-013815fd.md

latest1.4 KB
Original Source

TcxGridTableViewDetachedEditFormEvent Type

The OnDetachedEditFormInitialize event’s procedural type.

Declaration

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

Parameters

NameType
SenderTcxGridTableView
AFormTForm

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.

delphi
procedure MyForm.cxGrid1DBTableView1DetachedEditFormInitialize(
  Sender: TcxGridTableView; AForm: TForm);
begin
  AForm.BorderStyle := bsDialog;
  AForm.Height := 220;
  AForm.Width := 320;
end;
cpp
void __fastcall MyForm::cxGrid1DBTableView1DetachedEditFormInitialize(TcxGridTableView *Sender, TForm *AForm)
{
  AForm->BorderStyle = bsDialog;
  AForm->Height = 220;
  AForm->Width = 320;
}

Note

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

See Also

cxGridTableView Unit