在TdxDBTreeView控件的OnKeyDown事件中写入
if Key = VK_F2 then
begin
  if DBTreeMain.DBSelected = nil then
    Exit;
  DBTreeMain.DBSelected.EditText;
end;