RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomGrid.CanGridAcceptKey Method

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

Pascal
function CanGridAcceptKey(Key: Word; Shift: TShiftState): Boolean; dynamic;
C++
__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!