By overriding the InputKeys and KeyDown methods on the datagrid, I can
intercept the Tab. However, this is not the case with the Shift+Tab.
What I need to do for this particular datagrid/app is to disable the
ability of the user to tab through each cell in the datagrid.
Basically, when the datagrid or a cell gets focus and the Tab key is
pressed, the focus should go to the next control on the form, instead
of to each individual cell. I've got that part working, but when a
cell gets focus and Shift+Tab is pressed, I haven't been able to
intercept it. I've tried the InputKeys/KeyDown as I mentioned above
and have also tried overriding the ProcessCmdKey method but no luck. I
was thinking about overriding WndProc but was told that the Shift+Tab
happens even before that so haven't tried it as of yet.
Anyone done this before?
Thanks!
--
--------------------------------------------------
Christopher C. Bernholt
I.T. Research & Development
.NET Re-Engineering Team
R & L Carriers, Inc.
http://www.gorlc.com
--------------------------------------------------