按下F2编辑dxDBTreeView的节点
在TdxDBTreeView控件的OnKeyDown事件中写入
if Key = VK_F2 then
begin
if DBTreeMain.DBSelected = nil then
Exit;
DBTreeMain.DBSelected.EditText;
end;
好的代码像粥一样,都是用时间熬出来的
在TdxDBTreeView控件的OnKeyDown事件中写入
if Key = VK_F2 then
begin
if DBTreeMain.DBSelected = nil then
Exit;
DBTreeMain.DBSelected.EditText;
end;