DataGridViewTextBoxEditingControl.ProcessKeyEventArgs(Message) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Processes key events.
protected:
override bool ProcessKeyEventArgs(System::Windows::Forms::Message % m);
protected override bool ProcessKeyEventArgs (ref System.Windows.Forms.Message m);
override this.ProcessKeyEventArgs : Message -> bool
Protected Overrides Function ProcessKeyEventArgs (ByRef m As Message) As Boolean
Parameters
Returns
true
if the key event was handled by the editing control; otherwise, false
.
Remarks
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.
Applies to
See also
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.