I am currently handling the KeyDown event of a DataGridView control. One of the columns is filled by calculated values and I want the user to be able to override the cell va
A bit more condensed version:
private void KeyPress(object sender, KeyPressEventArgs e) { e.Handled = !Char.IsDigit(e.KeyChar); // only allow a user to enter numbers }