API:Vcl.DBGrids.TCustomDBGrid.KeyDown

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

procedure KeyDown(var Key: Word; Shift: TShiftState); override;

C++

DYNAMIC void __fastcall KeyDown(System::Word &Key, System::Classes::TShiftState Shift);

プロパティ

種類 可視性 ソース ユニット
procedure
function
protected
Vcl.DbGrids.pas
Vcl.DBGrids.hpp
Vcl.DBGrids TCustomDBGrid

説明

ユーザーがキーを押したときに特殊な処理を実行します。

Vcl.DBGrids.TCustomDBGrid.KeyDown は Vcl.Grids.TCustomGrid.KeyDown を継承しています。以下の内容はすべて Vcl.Grids.TCustomGrid.KeyDown を参照しています。

ユーザーがキーを押したときに特殊な処理を実行します。

KeyDown は、OnKeyDown イベントを生成した後に、CanGridAcceptKey を呼び出して、問題のあるキーの組み合わせを排除します。KeyDown は、移動キーの組み合わせに応じて適切なセルに移動します。F2 キーが押された場合は、EditorMode プロパティを true に設定します。

関連項目