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

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
 
S

SStory

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top