Vcl.Grids.TCustomGrid.CanGridAcceptKey

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CanGridAcceptKey(Key: Word; Shift: TShiftState): Boolean; dynamic;

C++

DYNAMIC bool __fastcall CanGridAcceptKey(System::Word Key, System::Classes::TShiftState Shift);

Properties

Type Visibility Source Unit Parent
function protected
Vcl.Grids.pas
Vcl.Grids.hpp
Vcl.Grids TCustomGrid

Description

Indicates whether the grid should respond to a given key combination.

Grid controls call CanGridAcceptKey internally to screen key combinations when the user first presses a key. The CanGridAcceptKey method for TCustomGrid always returns true. Descendants of TCustomGrid override this method to screen out irrelevant key combinations, or key combinations that indicate actions that would violate the Options or mode of the grid.

See Also