API:Vcl.DBGrids.TCustomDBGrid.CanEditAcceptKey
Delphi
function CanEditAcceptKey(Key: Char): Boolean; override;
C++
DYNAMIC bool __fastcall CanEditAcceptKey(System::WideChar Key);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.DbGrids.pas Vcl.DBGrids.hpp |
Vcl.DBGrids | TCustomDBGrid |
Description
Indicates whether the Key parameter can be entered into the current cell.
Vcl.DBGrids.TCustomDBGrid.CanEditAcceptKey inherits from Vcl.Grids.TCustomGrid.CanEditAcceptKey. All content below this line refers to Vcl.Grids.TCustomGrid.CanEditAcceptKey.
Indicates whether the Key parameter can be entered into the current cell.
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.