API:Vcl.DBGrids.TCustomDBGrid.KeyDown
Delphi
procedure KeyDown(var Key: Word; Shift: TShiftState); override;
C++
DYNAMIC void __fastcall KeyDown(System::Word &Key, System::Classes::TShiftState Shift);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.DbGrids.pas Vcl.DBGrids.hpp |
Vcl.DBGrids | TCustomDBGrid |
Description
Provides special processing when the user presses a key.
Vcl.DBGrids.TCustomDBGrid.KeyDown inherits from Vcl.Grids.TCustomGrid.KeyDown. All content below this line refers to Vcl.Grids.TCustomGrid.KeyDown.
Provides special processing when the user presses a key.
After generating an OnKeyDown event, KeyDown calls CanGridAcceptKey to screen out problematic key combinations. KeyDown moves to the appropriate cell in response to navigational key combinations, or sets the EditorMode property to true when the user presses F2.