论坛: 编程破解 标题: 怎样在delphi中获得焦点?急 复制本贴地址    
作者: catonline [catonline]    论坛用户   登录
在Delphi中,用DBGrid输出一个表中内容后,怎样获得焦点(也就是想要定位一条记录)?谢谢高手指教!!!!!

地主 发表时间: 11/14 07:46

回复: sainthero [sainthero]   论坛用户   登录
DBGrid1.SetFocus;
DBGrid1.SelectedIndex:=4;


[此贴被 sainthero(sainthero) 在 11月14日18时57分 编辑过]

B1层 发表时间: 11/14 18:12

回复: catonline [catonline]   论坛用户   登录
谢谢~~

B2层 发表时间: 11/26 08:55

论坛: 编程破解

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号