RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomGrid.CanEditAcceptKey Method

Indicates whether the Key parameter can be entered into the current cell.

Pascal
function CanEditAcceptKey(Key: Char): Boolean; dynamic;
C++
__fastcall Boolean CanEditAcceptKey(Char Key);

CanEditAcceptKey provides a simple screening of keyboard input while the user is editing the contents of a cell. The CanEditAcceptKey method for TCustomGrid always returns true. Descendants of TCustomGrid override this method to screen out illegal characters. 

More refined validation can be obtained by using an edit mask. 

 

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