void dataGridView1_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) { TextBox txtbox = e.Control as TextBox; if (txtbox != null) { txtbox.KeyPress += new KeyPressEventHandler(txtbox_KeyPress); } } void txtbox_KeyPress(object sender, KeyPressEventArgs e) { MessageBox.Show(e.KeyChar.ToString()); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)