dg_KeyPress???

D

Darryn Ross

Hi,

I am trying to catch the KeyPress event of my datagrid, but nothing is
happening, the event is not firing?

private void dgGLBatch_KeyPress(object sender,
System.Windows.Forms.KeyPressEventArgs e) {

if (e.KeyChar == (char)13)

SendKeys.SendWait("{TAB}");

}

Any help would be appreciated.

Regards

Darryn
 
J

Joyjit Mukherjee

Hi,

have you registered the handler associated with the event, e.g.,

dgGLBatch.KeyPress += new KeyPressEventHandler(dgGLBatch_KeyPress);

Regards
Joyjit
 
D

Darryn Ross

I tired that too and to no avail! i am wondering does it matter if i have a
custom table and Column styles setup??
 

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