DataGrid Inplace Editor Type unknown

When assigning an inplace editor to a column like this

Grid.Columns[ACol].Editor:=getEdit;

the GetInplaceEditorProperties event does not recognize the TEdit object

(AInplaceEditor as TEdit)...

It works with

Grid.Columns[ACol].Editor:=getComboBox;

and

(AInplaceEditor as TComboBox)...

The inplace editor is a TTMSFNCEdit (TTMSFNCDataGridEdit), with special handling for numeric fields, etc… You can use the following code to detect and cast:

procedure TForm13.TMSFNCDataGrid1GetInplaceEditorProperties(Sender: TObject;
  ACell: TTMSFNCDataGridCellCoord; AInplaceEditor: TTMSFNCDataGridInplaceEditor;
  AInplaceEditorType: TTMSFNCDataGridInplaceEditorType);
begin
  if AInplaceEditor.IsEdit then
  begin
    AInplaceEditor.AsEdit;
  end;
end;