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
TextBox.KeyPress event.
KeyPress Event Code
EditingControlShowing Event Code
After that the Keypress event must be work fine
Nice it helps
ReplyDeleteThis comment has been removed by the author.
ReplyDeletethx a lot
Delete