RAD Studio VCL Reference
|
Indicates whether the Key parameter can be entered into the current cell.
function CanEditAcceptKey(Key: Char): Boolean; override;
virtual __fastcall Boolean CanEditAcceptKey(Char Key);
Data-aware grids use CanEditAcceptKey internally to determine whether keys typed by the user are valid for the field represented by the current cell. CanEditAcceptKey calls the IsValidChar method of the field component associated with the column that has input focus.
CanEditAcceptKey provides a crude validation of keyboard input. More refined validation is provided when the value in the cell is written to the record in the dataset, or by an edit mask.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|