Showing posts with label DataGridView keypress not call. Show all posts
Showing posts with label DataGridView keypress not call. Show all posts

Tuesday, September 18, 2012

DataGridView keypress Event Not Working

 
 
 
In this example i want to create Keypress Event in Column named 'Name' to allow letters  and backspace character
 

 
 
here DataGridView.EditingControlShowing event handler adds a handler for a
 
DataGridViewTextBoxEditingControl event. The editing control is cast to a TextBox to handle the
 
 
 
 

 
KeyPress Event Code
 


EditingControlShowing Event Code
 
 
 
 
After that the Keypress event must be work fine