RAD Studio VCL Reference
TDBLookupList.CanGridAcceptKey Method

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

function CanGridAcceptKey(Key: Word; Shift: TShiftState): Boolean; override;
virtual __fastcall Boolean CanGridAcceptKey(Word Key, TShiftState Shift);

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. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!