终于搞定:
procedure TForm1.DBGrid1ColEnter(Sender: TObject);
begin
DBGrid1.EditorMode:=True;
keybd_event( VK_MENU, MapVirtualKey( VK_MENU, 0 ), 0 , 0 ); keybd_event( VK_DOWN, MapVirtualKey( VK_DOWN, 0 ), 0 , 0 );
keybd_event( VK_DOWN, MapVirtualKey( VK_DOWN, 0 ), KEYEVENTF_KEYUP , 0 );
keybd_event( VK_MENU, MapVirtualKey( VK_MENU, 0 ), KEYEVENTF_KEYUP , 0 );
end;
此代码在哪个事件触发以及什么条件触发,你自己来吧