原文:https://www.devexpress.com/Support/Center/Question/Details/A2911
he solution to your problem is very simple:
1) Keep the View's OptionsData.Editing option active.
2) Implement the View's OnEditing event handler as follows:
[Delphi] Open in popup windowprocedure <Form>.<View>Editing(Sender: TcxCustomGridTableView; AItem: TcxCustomGridTableItem; var AAllow: Boolean); begin AAllow := Sender.Controller.FocusedRecord.IsNewItemRecord; // NewItemRow is focused end;