DataGridTextBoxColumn KeyUp

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a class derived from DataGridTextBoxColumn. I was trying to deal
with a data entry issue, and wanted to change from using a KeyPress event to
a KeyUp event. However, while the KeyPress event was getting called the
KeyUp event is not.

Was:
TextBox.KeyPress += new KeyPressEventHandler(TextBox_KeyPress);
Want:
TextBox.KeyUp += new System.Windows.Forms.KeyEventHandler(TextBox_KeyUp);

Any ideas?
TIA
 
Hi kenneth,

Thanks for your post.

Based on my understanding, you want to handle KeyUp event in
DataGridTextBoxColumn, however, it does not fire at all.

I have created a test sample for this issue, and reproduce out your
problem. It seems the KeyPress event fires well, while the KeyUp event does
not fire.

After doing some search in our internal database, I found this is a known
and reported bug, which is the DataGridTextBox's implementation problem.
There is no workaround for this bug yet.

Hope this helps.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top