Hi Shane, each datagrid cell is actually it's own control. To capture
keystrokes within the datagrid cell you must dynamically add a handler to
each cell at runtime. something along the lines of
dim myControl as Control
for each myControl in myDataGrid.Controls
addhandler mycontrol.KeyDown, addressof myHandler
next
i wrote this code off the top of my head so it's not tested, but you can
find more than enough examples of this if you do a search on google in the
microsoft.public.dotnet.framework.windowsforms.con trols
group.
http://tinyurl.com/xd7i
hope this helps a little,
Jim
"SStory" <Th*******@TAKETHISSPAMBUSTEROUT.Softhome.net> wrote in message
news:OJ**************@TK2MSFTNGP09.phx.gbl...
I want to use F6,F7,etc for an entire form.
Have key preview to true and it works everywhere but on the grid.
On the grid sometimes it works and sometimes not.
Appears that if I am in a cell and press one of them it won't work.
Any ideas?
Shane