DataGridViewTextBoxEditingControl.ProcessKeyEventArgs Method (Message)
Processes key events.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
[SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.UnmanagedCode)] protected override bool ProcessKeyEventArgs( ref Message m )
Return ValueType: System.Boolean
true if the key event was handled by the editing control; otherwise, false.
This method ensures that the ENTER key is ignored so that carriage return and line feeds aren't stored in the cell value. This method also allows the cell contents to be selected when CTRL+A is pressed.
Available since 2.0