DataGridView::ProcessRightKey Method (Keys)
Processes the RIGHT ARROW key.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
protected: [SecurityPermissionAttribute(SecurityAction::LinkDemand, Flags = SecurityPermissionFlag::UnmanagedCode)] bool ProcessRightKey( Keys keyData )
Return ValueType: System::Boolean
true if the key was processed; otherwise, false.
The following code example demonstrates how to change the behavior of the ENTER key in a DataGridView subclass by overriding the ProcessDataGridViewKey and ProcessDialogKey methods. In the example, the ENTER key has the same behavior as the RIGHT ARROW key, making it easier for a user to edit multiple cells in a single row of data.
Available since 2.0