dg_KeyPress???

  • Thread starter Thread starter Darryn Ross
  • Start date Start date
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
 
Hi,

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

dgGLBatch.KeyPress += new KeyPressEventHandler(dgGLBatch_KeyPress);

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