Vcl.DBGrids.TCustomDBGrid.CanEditAcceptKey

From RAD Studio API Documentation
Jump to: navigation, search

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.

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.

See Also