catching keystrokes from a Datagrid cell--that should be form wide

  • Thread starter Thread starter SStory
  • Start date Start date
S

SStory

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
 
got the answer in another newsgroup.

You must assign a handler to each control in the grid
dim c as control
for each c in gridwhatever.controls
addhandler c.keydown,mykeydownhandler
next

then make a keydown handler

run this anytime the grid control is rebound.
 
Back
Top