I assume that you know that there is a tabs flag under the options property
in the dbgrid control. Setting to false means that Tab/ShiftTab will not
move you within the control grid but move to the next/prev control. The user
will have to use the arrow keys and enter key to edit/move around the grid.
Warren

-----Original Message-----
From: Corey Murtagh [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 24 June 2003 03:09 p.m.
To: Multiple recipients of list delphi
Subject: [DUG]: How to stop TDBCtrlGrid wrapping


I want to use a TDBCtrlGrid for a form I'm designing, but the wrapping 
behavior is making things awkward.  I really need for Tab to exit the 
control once it reaches the end of the last record, but instead it wraps 
around to the first control in the last record's panel.  Same for 
Shift-Tab at the first control of the first record.

I know I could fix this by creating a descendant of TDBCtrlGrid, but 
that's really overkill for this situation.

Environment is BCB4, so any solution that works for the Delphi4 should 
be applicable here too.  Any help appreciated.

-- 
Corey Murtagh
The Electric Monk
"Quidquid latine dictum sit, altum viditur!"

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared 
by MailMarshal
For more information please visit www.marshalsoftware.com
#####################################################################################
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"
Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/

Reply via email to