Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DBGrid Cell Setfocus

121 views
Skip to first unread message

Silas Wu

unread,
Mar 3, 2003, 8:53:42 AM3/3/03
to
Hi,

Would anyone know how to setfocus to a specific DBGrid cell ?(e.g. cell
2,3).

Thanks and Regards,
Silas


Wayne Niddery [TeamB]

unread,
Mar 3, 2003, 2:59:08 PM3/3/03
to
"Silas Wu" <sil...@tasan.com.hk> wrote in message
news:3e63...@newsgroups.borland.com...

>
> Would anyone know how to setfocus to a specific DBGrid cell ?(e.g. cell
> 2,3).

For the row, you need to move the position in the connected dataset. For the
column you can set SelectedIndex:

DBGrid1.SelectedIndex := 2;


--
Wayne Niddery - Logic Fundamentals, Inc. (www.logicfundamentals.com)
"Democracy, without that guarantee of liberty, is merely a method of
selecting tyrants." - Alan Nitikman

Silas Wu

unread,
Mar 4, 2003, 2:20:43 AM3/4/03
to
It is good. Thanks Wayne.

"Wayne Niddery [TeamB]" <wnid...@chaff.aci.on.ca> 写入消息新闻
:3e63...@newsgroups.borland.com...

0 new messages