Ignores Alt+Up and Alt+Down, passing through any other keys.
Namespace: CleanCode.DataGridViewControlsAssembly: CleanCode.DataGridViewControls (in CleanCode.DataGridViewControls.dll) Version: 1.2.3.0 (1.2.03)
Syntax
protected override bool ProcessDataGridViewKey( KeyEventArgs e )
Parameters
- e
- Type: System.Windows.Forms KeyEventArgs
Contains information about the key that was pressed.
Return Value
true if the key was processed; otherwise, false.Exceptions
Exception | Condition |
---|---|
System InvalidCastException | The key pressed would cause the control to enter edit mode, but the EditType property of the current cell does not indicate a class that derives from Control and implements IDataGridViewEditingControl. |
System Exception | This action would commit a cell value or enter edit mode, but an error in the data source prevents the action and either there is no handler for the DataError event or the handler has set the ThrowException property to true. -or- The DELETE key would delete one or more rows, but an error in the data source prevents the deletion and either there is no handler for the DataError event or the handler has set the ThrowException property to true. |
See Also