protected virtual void OnKeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == AsciiChars.CarriageReturn /*Enter*/) { if (this.EditingTable != null) { this.EditingTable.StopEditing(); } } else if (e.KeyChar == AsciiChars.Escape) { if (this.EditingTable != null) { this.EditingTable.CancelEditing(); } } }